Rename jc:: to ke::
authorDavid Anderson <dvander@alliedmods.net>
Sat Jul 07 21:30:23 2012 -0700 (2012-07-07)
changeset 59b7d61ddb3c8d
parent 58 4d6265f95ff1
child 60 581a9c793062
Rename jc:: to ke::
jitcraft/AST.h
jitcraft/AllocatorPolicies.h
jitcraft/Array.cpp
jitcraft/Array.h
jitcraft/Barriers.h
jitcraft/BytecodeCompiler.cpp
jitcraft/BytecodeCompiler.h
jitcraft/BytecodeEmitter.cpp
jitcraft/BytecodeEmitter.h
jitcraft/Code.h
jitcraft/CompileContext.cpp
jitcraft/CompileContext.h
jitcraft/Exception.cpp
jitcraft/FixedArray.cpp
jitcraft/FixedArray.h
jitcraft/Functions.cpp
jitcraft/Functions.h
jitcraft/Handles-inl.h
jitcraft/Handles.h
jitcraft/HashTable.h
jitcraft/Heap-inl.h
jitcraft/Heap.cpp
jitcraft/Heap.h
jitcraft/Interpreter.cpp
jitcraft/Interpreter.h
jitcraft/Messages.h
jitcraft/Modules.cpp
jitcraft/Modules.h
jitcraft/NameBinding.cpp
jitcraft/NameBinding.h
jitcraft/ObjectVisitor.h
jitcraft/Objects.h
jitcraft/Opcodes.cpp
jitcraft/Opcodes.h
jitcraft/Parser.cpp
jitcraft/Parser.h
jitcraft/Platform-Windows.cpp
jitcraft/Platform.h
jitcraft/PoolAllocator.cpp
jitcraft/PoolAllocator.h
jitcraft/Reference.cpp
jitcraft/Reference.h
jitcraft/RootScopes.cpp
jitcraft/RootScopes.h
jitcraft/Scanner.cpp
jitcraft/Scanner.h
jitcraft/Scopes.cpp
jitcraft/Scopes.h
jitcraft/SemanticAnalysis.cpp
jitcraft/SemanticAnalysis.h
jitcraft/Spaces-inl.h
jitcraft/Spaces.cpp
jitcraft/Spaces.h
jitcraft/Stack.cpp
jitcraft/Stack.h
jitcraft/StringPool.cpp
jitcraft/StringPool.h
jitcraft/Strings.cpp
jitcraft/Strings.h
jitcraft/Token.h
jitcraft/TypeManager.cpp
jitcraft/TypeManager.h
jitcraft/Types.cpp
jitcraft/Types.h
jitcraft/Utility.h
jitcraft/Vector.h
jitcraft/VirtualObjectVisitor.h
jitcraft/Zone.cpp
jitcraft/Zone.h
jitcraft/jitcraft.vcxproj
jitcraft/main.cpp
     1.1 --- a/jitcraft/AST.h	Sat Jul 07 21:08:47 2012 -0700
     1.2 +++ b/jitcraft/AST.h	Sat Jul 07 21:30:23 2012 -0700
     1.3 @@ -23,7 +23,7 @@
     1.4  #include "NameBinding.h"
     1.5  #include "Vector.h"
     1.6  
     1.7 -namespace jc {
     1.8 +namespace ke {
     1.9  
    1.10  #define ASTKINDS(_)             \
    1.11      _(VariableDeclaration)      \
     2.1 --- a/jitcraft/AllocatorPolicies.h	Sat Jul 07 21:08:47 2012 -0700
     2.2 +++ b/jitcraft/AllocatorPolicies.h	Sat Jul 07 21:30:23 2012 -0700
     2.3 @@ -20,7 +20,7 @@
     2.4  
     2.5  #include <stdlib.h>
     2.6  
     2.7 -namespace jc {
     2.8 +namespace ke {
     2.9  
    2.10  class ZoneAllocatorPolicy
    2.11  {
     3.1 --- a/jitcraft/Array.cpp	Sat Jul 07 21:08:47 2012 -0700
     3.2 +++ b/jitcraft/Array.cpp	Sat Jul 07 21:30:23 2012 -0700
     3.3 @@ -20,7 +20,7 @@
     3.4  #include "Zone.h"
     3.5  #include "Heap-inl.h"
     3.6  
     3.7 -using namespace jc;
     3.8 +using namespace ke;
     3.9  
    3.10  ArrayMap *
    3.11  ArrayMap::New(Zone *zone, Handle<Type> type, Handle<ArrayMap> contained)
    3.12 @@ -39,7 +39,7 @@
    3.13  SizeFor(Type *type, unsigned elements)
    3.14  {
    3.15      if (type->levels() > 1)
    3.16 -        return sizeof(Array) + elements * sizeof(jc::Object *);
    3.17 +        return sizeof(Array) + elements * sizeof(ke::Object *);
    3.18      if (type->contained()->isInt32())
    3.19          return sizeof(Array) + elements * sizeof(int);
    3.20      if (type->contained()->primitive() == PrimitiveType_Char)
     4.1 --- a/jitcraft/Array.h	Sat Jul 07 21:08:47 2012 -0700
     4.2 +++ b/jitcraft/Array.h	Sat Jul 07 21:30:23 2012 -0700
     4.3 @@ -22,7 +22,7 @@
     4.4  #include "Handles.h"
     4.5  #include "Types.h"
     4.6  
     4.7 -namespace jc {
     4.8 +namespace ke {
     4.9  
    4.10  class ArrayMap;
    4.11  
     5.1 --- a/jitcraft/Barriers.h	Sat Jul 07 21:08:47 2012 -0700
     5.2 +++ b/jitcraft/Barriers.h	Sat Jul 07 21:30:23 2012 -0700
     5.3 @@ -18,7 +18,7 @@
     5.4  #ifndef _include_jitcraft_barriers_h_
     5.5  #define _include_jitcraft_barriers_h_
     5.6  
     5.7 -namespace jc {
     5.8 +namespace ke {
     5.9  
    5.10  class Object;
    5.11  
     6.1 --- a/jitcraft/BytecodeCompiler.cpp	Sat Jul 07 21:08:47 2012 -0700
     6.2 +++ b/jitcraft/BytecodeCompiler.cpp	Sat Jul 07 21:30:23 2012 -0700
     6.3 @@ -25,7 +25,7 @@
     6.4  #include "Zone.h"
     6.5  #include "Heap-inl.h"
     6.6  
     6.7 -using namespace jc;
     6.8 +using namespace ke;
     6.9  
    6.10  typedef BytecodeEmitter::Label Label;
    6.11  
     7.1 --- a/jitcraft/BytecodeCompiler.h	Sat Jul 07 21:08:47 2012 -0700
     7.2 +++ b/jitcraft/BytecodeCompiler.h	Sat Jul 07 21:30:23 2012 -0700
     7.3 @@ -23,7 +23,7 @@
     7.4  #include "BytecodeEmitter.h"
     7.5  #include "Functions.h"
     7.6  
     7.7 -namespace jc {
     7.8 +namespace ke {
     7.9  
    7.10  class Module;
    7.11  
     8.1 --- a/jitcraft/BytecodeEmitter.cpp	Sat Jul 07 21:08:47 2012 -0700
     8.2 +++ b/jitcraft/BytecodeEmitter.cpp	Sat Jul 07 21:30:23 2012 -0700
     8.3 @@ -21,7 +21,7 @@
     8.4  #include "Utility.h"
     8.5  #include "Types.h"
     8.6  
     8.7 -using namespace jc;
     8.8 +using namespace ke;
     8.9  
    8.10  BytecodeEmitter::BytecodeEmitter(PoolAllocator &pool)
    8.11    : pool_(pool),
     9.1 --- a/jitcraft/BytecodeEmitter.h	Sat Jul 07 21:08:47 2012 -0700
     9.2 +++ b/jitcraft/BytecodeEmitter.h	Sat Jul 07 21:30:23 2012 -0700
     9.3 @@ -25,7 +25,7 @@
     9.4  #include "NameBinding.h"
     9.5  #include "Handles.h"
     9.6  
     9.7 -namespace jc {
     9.8 +namespace ke {
     9.9  
    9.10  class Type;
    9.11  class Map;
    10.1 --- a/jitcraft/Code.h	Sat Jul 07 21:08:47 2012 -0700
    10.2 +++ b/jitcraft/Code.h	Sat Jul 07 21:30:23 2012 -0700
    10.3 @@ -25,7 +25,7 @@
    10.4  #include "Types.h"
    10.5  #include "FixedArray.h"
    10.6  
    10.7 -namespace jc {
    10.8 +namespace ke {
    10.9  
   10.10  class Module;
   10.11  class Type;
    11.1 --- a/jitcraft/CompileContext.cpp	Sat Jul 07 21:08:47 2012 -0700
    11.2 +++ b/jitcraft/CompileContext.cpp	Sat Jul 07 21:30:23 2012 -0700
    11.3 @@ -19,7 +19,7 @@
    11.4  #include "Scanner.h"
    11.5  #include "CompileContext.h"
    11.6  
    11.7 -using namespace jc;
    11.8 +using namespace ke;
    11.9  
   11.10  CompileContext::CompileContext(Zone *zone)
   11.11    : zone_(zone),
    12.1 --- a/jitcraft/CompileContext.h	Sat Jul 07 21:08:47 2012 -0700
    12.2 +++ b/jitcraft/CompileContext.h	Sat Jul 07 21:30:23 2012 -0700
    12.3 @@ -21,7 +21,7 @@
    12.4  #include <stdarg.h>
    12.5  #include "Messages.h"
    12.6  
    12.7 -namespace jc {
    12.8 +namespace ke {
    12.9  
   12.10  class Zone;
   12.11  struct SourcePosition;
    13.1 --- a/jitcraft/Exception.cpp	Sat Jul 07 21:08:47 2012 -0700
    13.2 +++ b/jitcraft/Exception.cpp	Sat Jul 07 21:30:23 2012 -0700
    13.3 @@ -19,9 +19,9 @@
    13.4  #include "Utility.h"
    13.5  #include "Messages.h"
    13.6  
    13.7 -using namespace jc;
    13.8 +using namespace ke;
    13.9  
   13.10 -const MessageInfo jc::Messages[] =
   13.11 +const MessageInfo ke::Messages[] =
   13.12  {
   13.13  #define MSG(Name, Type, String) \
   13.14      { MessageType_##Type, String },
    14.1 --- a/jitcraft/FixedArray.cpp	Sat Jul 07 21:08:47 2012 -0700
    14.2 +++ b/jitcraft/FixedArray.cpp	Sat Jul 07 21:30:23 2012 -0700
    14.3 @@ -20,9 +20,9 @@
    14.4  #include "Zone.h"
    14.5  #include "Heap-inl.h"
    14.6  
    14.7 -using namespace jc;
    14.8 +using namespace ke;
    14.9  
   14.10 -static const unsigned kMaxFixedArrayLength = ((INT_MAX - sizeof(FixedArray)) / sizeof(jc::Object *));
   14.11 +static const unsigned kMaxFixedArrayLength = ((INT_MAX - sizeof(FixedArray)) / sizeof(ke::Object *));
   14.12  
   14.13  FixedArray *
   14.14  FixedArray::New(Zone *zone, unsigned length, Heap::Tenure tenure)
    15.1 --- a/jitcraft/FixedArray.h	Sat Jul 07 21:08:47 2012 -0700
    15.2 +++ b/jitcraft/FixedArray.h	Sat Jul 07 21:30:23 2012 -0700
    15.3 @@ -21,7 +21,7 @@
    15.4  
    15.5  #include "Heap.h"
    15.6  
    15.7 -namespace jc {
    15.8 +namespace ke {
    15.9  
   15.10  // A fixed-length array that contains Object * slots.
   15.11  class FixedArray : public Object
    16.1 --- a/jitcraft/Functions.cpp	Sat Jul 07 21:08:47 2012 -0700
    16.2 +++ b/jitcraft/Functions.cpp	Sat Jul 07 21:30:23 2012 -0700
    16.3 @@ -20,7 +20,7 @@
    16.4  #include "Zone.h"
    16.5  #include "Heap-inl.h"
    16.6  
    16.7 -using namespace jc;
    16.8 +using namespace ke;
    16.9  
   16.10  Function *
   16.11  Function::New(Zone *zone, Module *module, Code *code, Type *type, const SourcePosition &pos)
    17.1 --- a/jitcraft/Functions.h	Sat Jul 07 21:08:47 2012 -0700
    17.2 +++ b/jitcraft/Functions.h	Sat Jul 07 21:30:23 2012 -0700
    17.3 @@ -23,7 +23,7 @@
    17.4  #include "Token.h"
    17.5  #include "Types.h"
    17.6  
    17.7 -namespace jc {
    17.8 +namespace ke {
    17.9  
   17.10  class Code;
   17.11  class Module;
    18.1 --- a/jitcraft/Handles-inl.h	Sat Jul 07 21:08:47 2012 -0700
    18.2 +++ b/jitcraft/Handles-inl.h	Sat Jul 07 21:30:23 2012 -0700
    18.3 @@ -20,7 +20,7 @@
    18.4  
    18.5  #include "Heap.h"
    18.6  
    18.7 -namespace jc {
    18.8 +namespace ke {
    18.9  
   18.10  template <typename T>
   18.11  Local<T>::Local(Environment *env)
    19.1 --- a/jitcraft/Handles.h	Sat Jul 07 21:08:47 2012 -0700
    19.2 +++ b/jitcraft/Handles.h	Sat Jul 07 21:30:23 2012 -0700
    19.3 @@ -21,7 +21,7 @@
    19.4  
    19.5  #include "Objects.h"
    19.6  
    19.7 -namespace jc {
    19.8 +namespace ke {
    19.9  
   19.10  class Zone;
   19.11  
    20.1 --- a/jitcraft/HashTable.h	Sat Jul 07 21:08:47 2012 -0700
    20.2 +++ b/jitcraft/HashTable.h	Sat Jul 07 21:30:23 2012 -0700
    20.3 @@ -22,7 +22,7 @@
    20.4  #include <limits.h>
    20.5  #include "Utility.h"
    20.6  
    20.7 -namespace jc {
    20.8 +namespace ke {
    20.9  
   20.10  template <typename T>
   20.11  class HashTableEntry
    21.1 --- a/jitcraft/Heap-inl.h	Sat Jul 07 21:08:47 2012 -0700
    21.2 +++ b/jitcraft/Heap-inl.h	Sat Jul 07 21:30:23 2012 -0700
    21.3 @@ -22,7 +22,7 @@
    21.4  #include "Heap.h"
    21.5  #include "Spaces-inl.h"
    21.6  
    21.7 -namespace jc {
    21.8 +namespace ke {
    21.9  
   21.10  static inline Object *
   21.11  InitAddressIntoObject(Address address, Map *map)
    22.1 --- a/jitcraft/Heap.cpp	Sat Jul 07 21:08:47 2012 -0700
    22.2 +++ b/jitcraft/Heap.cpp	Sat Jul 07 21:30:23 2012 -0700
    22.3 @@ -24,7 +24,7 @@
    22.4  #include "Zone.h"
    22.5  #include "StringPool.h"
    22.6  
    22.7 -using namespace jc;
    22.8 +using namespace ke;
    22.9  
   22.10  static const size_t kMarkStackSize = 256 * kKB;
   22.11  
   22.12 @@ -107,7 +107,7 @@
   22.13  // become grey, and grey objects are not re-pushed onto the mark stack. Thus,
   22.14  // eventually, all objects will become black.
   22.15  //
   22.16 -namespace jc {
   22.17 +namespace ke {
   22.18  class MarkStack
   22.19  {
   22.20      Object **base_;
   22.21 @@ -150,7 +150,7 @@
   22.22          overflowed_ = true;
   22.23      }
   22.24  };
   22.25 -} // namespace jc
   22.26 +} // namespace ke
   22.27  
   22.28  // Iterates over an object's body, pushing its referenced objects onto the
   22.29  // mark stack.
    23.1 --- a/jitcraft/Heap.h	Sat Jul 07 21:08:47 2012 -0700
    23.2 +++ b/jitcraft/Heap.h	Sat Jul 07 21:30:23 2012 -0700
    23.3 @@ -25,7 +25,7 @@
    23.4  #include "Objects.h"
    23.5  #include "Handles.h"
    23.6  
    23.7 -namespace jc {
    23.8 +namespace ke {
    23.9  
   23.10  class Zone;
   23.11  class MarkStack;
    24.1 --- a/jitcraft/Interpreter.cpp	Sat Jul 07 21:08:47 2012 -0700
    24.2 +++ b/jitcraft/Interpreter.cpp	Sat Jul 07 21:30:23 2012 -0700
    24.3 @@ -24,7 +24,7 @@
    24.4  #include "Reference.h"
    24.5  #include "Heap-inl.h"
    24.6  
    24.7 -using namespace jc;
    24.8 +using namespace ke;
    24.9  
   24.10  #define PUSH_I32(top, value)    \
   24.11      do {                        \
   24.12 @@ -120,7 +120,7 @@
   24.13  }
   24.14  
   24.15  bool
   24.16 -jc::Interpret(Zone *zone, Frame *entryFrame, LocalSlot *result)
   24.17 +ke::Interpret(Zone *zone, Frame *entryFrame, LocalSlot *result)
   24.18  {
   24.19      Top &top = *zone->stack().top();
   24.20      LocalSlot *locals = entryFrame->locals();
    25.1 --- a/jitcraft/Interpreter.h	Sat Jul 07 21:08:47 2012 -0700
    25.2 +++ b/jitcraft/Interpreter.h	Sat Jul 07 21:30:23 2012 -0700
    25.3 @@ -20,7 +20,7 @@
    25.4  
    25.5  #include "Stack.h"
    25.6  
    25.7 -namespace jc {
    25.8 +namespace ke {
    25.9  
   25.10  bool Interpret(Zone *zone, Frame *frame, LocalSlot *result);
   25.11  
    26.1 --- a/jitcraft/Messages.h	Sat Jul 07 21:08:47 2012 -0700
    26.2 +++ b/jitcraft/Messages.h	Sat Jul 07 21:30:23 2012 -0700
    26.3 @@ -18,7 +18,7 @@
    26.4  #ifndef _include_jitcraft_messages_h_
    26.5  #define _include_jitcraft_messages_h_
    26.6  
    26.7 -namespace jc {
    26.8 +namespace ke {
    26.9  
   26.10  enum MessageType
   26.11  {
    27.1 --- a/jitcraft/Modules.cpp	Sat Jul 07 21:08:47 2012 -0700
    27.2 +++ b/jitcraft/Modules.cpp	Sat Jul 07 21:30:23 2012 -0700
    27.3 @@ -20,7 +20,7 @@
    27.4  #include "Heap.h"
    27.5  #include "Heap-inl.h"
    27.6  
    27.7 -using namespace jc;
    27.8 +using namespace ke;
    27.9  
   27.10  Module *
   27.11  Module::New(Zone *zone, unsigned nfunctions)
    28.1 --- a/jitcraft/Modules.h	Sat Jul 07 21:08:47 2012 -0700
    28.2 +++ b/jitcraft/Modules.h	Sat Jul 07 21:30:23 2012 -0700
    28.3 @@ -22,7 +22,7 @@
    28.4  #include "Code.h"
    28.5  #include "Functions.h"
    28.6  
    28.7 -namespace jc {
    28.8 +namespace ke {
    28.9  
   28.10  class Module : public Object
   28.11  {
    29.1 --- a/jitcraft/NameBinding.cpp	Sat Jul 07 21:08:47 2012 -0700
    29.2 +++ b/jitcraft/NameBinding.cpp	Sat Jul 07 21:30:23 2012 -0700
    29.3 @@ -19,7 +19,7 @@
    29.4  #include "Strings.h"
    29.5  #include "Zone.h"
    29.6  
    29.7 -using namespace jc;
    29.8 +using namespace ke;
    29.9  
   29.10  BoundName::BoundName(Scope *scope, Handle<String> name, const SourcePosition &pos)
   29.11    : scope_(scope),
    30.1 --- a/jitcraft/NameBinding.h	Sat Jul 07 21:08:47 2012 -0700
    30.2 +++ b/jitcraft/NameBinding.h	Sat Jul 07 21:30:23 2012 -0700
    30.3 @@ -22,7 +22,7 @@
    30.4  #include "Types.h"
    30.5  #include "Scanner.h"
    30.6  
    30.7 -namespace jc {
    30.8 +namespace ke {
    30.9  
   30.10  class Variable;
   30.11  class NamedFunction;
    31.1 --- a/jitcraft/ObjectVisitor.h	Sat Jul 07 21:08:47 2012 -0700
    31.2 +++ b/jitcraft/ObjectVisitor.h	Sat Jul 07 21:30:23 2012 -0700
    31.3 @@ -29,7 +29,7 @@
    31.4  #include "Array.h"
    31.5  #include "Strings.h"
    31.6  
    31.7 -namespace jc {
    31.8 +namespace ke {
    31.9  
   31.10  // An ObjectVisitor is used for traversing object references in the heap. Since
   31.11  // this pattern must be lightning fast, we avoid virtual dispatch by forcing
    32.1 --- a/jitcraft/Objects.h	Sat Jul 07 21:08:47 2012 -0700
    32.2 +++ b/jitcraft/Objects.h	Sat Jul 07 21:30:23 2012 -0700
    32.3 @@ -23,7 +23,7 @@
    32.4  #include "Spaces.h"
    32.5  #include "Barriers.h"
    32.6  
    32.7 -namespace jc {
    32.8 +namespace ke {
    32.9  
   32.10  class Zone;
   32.11  
    33.1 --- a/jitcraft/Opcodes.cpp	Sat Jul 07 21:08:47 2012 -0700
    33.2 +++ b/jitcraft/Opcodes.cpp	Sat Jul 07 21:30:23 2012 -0700
    33.3 @@ -25,9 +25,9 @@
    33.4  #include "Strings.h"
    33.5  #include "Heap-inl.h"
    33.6  
    33.7 -using namespace jc;
    33.8 +using namespace ke;
    33.9  
   33.10 -OpInfo jc::OpcodeInfo[] =
   33.11 +OpInfo ke::OpcodeInfo[] =
   33.12  {
   33.13  #define OPDEF(name, number, text, length, uses, defs) \
   33.14      {text, length, uses, defs},
   33.15 @@ -109,7 +109,7 @@
   33.16  STATIC_ASSERT(OP_JF_LENGTH == OP_JUMP_LENGTH);
   33.17  
   33.18  void
   33.19 -jc::Disassemble(Code *code, FILE *fp)
   33.20 +ke::Disassemble(Code *code, FILE *fp)
   33.21  {
   33.22      bytecode *pc = code->start();
   33.23      for (;;) {
    34.1 --- a/jitcraft/Opcodes.h	Sat Jul 07 21:08:47 2012 -0700
    34.2 +++ b/jitcraft/Opcodes.h	Sat Jul 07 21:30:23 2012 -0700
    34.3 @@ -21,7 +21,7 @@
    34.4  #include <assert.h>
    34.5  #include <stdio.h>
    34.6  
    34.7 -namespace jc {
    34.8 +namespace ke {
    34.9  
   34.10  enum Opcode
   34.11  {
    35.1 --- a/jitcraft/Parser.cpp	Sat Jul 07 21:08:47 2012 -0700
    35.2 +++ b/jitcraft/Parser.cpp	Sat Jul 07 21:30:23 2012 -0700
    35.3 @@ -23,7 +23,7 @@
    35.4  #include "Strings.h"
    35.5  #include "Heap-inl.h"
    35.6  
    35.7 -using namespace jc;
    35.8 +using namespace ke;
    35.9  
   35.10  Parser::Parser(Zone *zone, CompileContext &cc, const char *stream, size_t length)
   35.11    : zone_(zone),
    36.1 --- a/jitcraft/Parser.h	Sat Jul 07 21:08:47 2012 -0700
    36.2 +++ b/jitcraft/Parser.h	Sat Jul 07 21:30:23 2012 -0700
    36.3 @@ -24,7 +24,7 @@
    36.4  #include "Scopes.h"
    36.5  #include "Strings.h"
    36.6  
    36.7 -namespace jc {
    36.8 +namespace ke {
    36.9  
   36.10  class Parser
   36.11  {
    37.1 --- a/jitcraft/Platform-Windows.cpp	Sat Jul 07 21:08:47 2012 -0700
    37.2 +++ b/jitcraft/Platform-Windows.cpp	Sat Jul 07 21:30:23 2012 -0700
    37.3 @@ -22,7 +22,7 @@
    37.4  #include <Windows.h>
    37.5  #include "Platform.h"
    37.6  
    37.7 -using namespace jc;
    37.8 +using namespace ke;
    37.9  
   37.10  static inline DWORD
   37.11  ToProtBits(OS::Protection prot)
    38.1 --- a/jitcraft/Platform.h	Sat Jul 07 21:08:47 2012 -0700
    38.2 +++ b/jitcraft/Platform.h	Sat Jul 07 21:30:23 2012 -0700
    38.3 @@ -21,7 +21,7 @@
    38.4  
    38.5  #include "Utility.h"
    38.6  
    38.7 -namespace jc {
    38.8 +namespace ke {
    38.9  
   38.10  namespace OS {
   38.11      enum Protection {
    39.1 --- a/jitcraft/PoolAllocator.cpp	Sat Jul 07 21:08:47 2012 -0700
    39.2 +++ b/jitcraft/PoolAllocator.cpp	Sat Jul 07 21:30:23 2012 -0700
    39.3 @@ -21,7 +21,7 @@
    39.4  #include "PoolAllocator.h"
    39.5  #include "Zone.h"
    39.6  
    39.7 -using namespace jc;
    39.8 +using namespace ke;
    39.9  
   39.10  PoolAllocator::PoolAllocator()
   39.11    : reserved_(NULL),
    40.1 --- a/jitcraft/PoolAllocator.h	Sat Jul 07 21:08:47 2012 -0700
    40.2 +++ b/jitcraft/PoolAllocator.h	Sat Jul 07 21:30:23 2012 -0700
    40.3 @@ -24,7 +24,7 @@
    40.4  #include "Utility.h"
    40.5  #include "Vector.h"
    40.6  
    40.7 -namespace jc {
    40.8 +namespace ke {
    40.9  
   40.10  // Allocates memory in chunks that are not freed until the entire allocator
   40.11  // is freed. This is intended for use with large, temporary data structures.
    41.1 --- a/jitcraft/Reference.cpp	Sat Jul 07 21:08:47 2012 -0700
    41.2 +++ b/jitcraft/Reference.cpp	Sat Jul 07 21:30:23 2012 -0700
    41.3 @@ -20,7 +20,7 @@
    41.4  #include "Array.h"
    41.5  #include "Heap-inl.h"
    41.6  
    41.7 -using namespace jc;
    41.8 +using namespace ke;
    41.9  
   41.10  Reference *
   41.11  Reference::NewStack(Zone *zone, void *location, Heap::Tenure tenure)
    42.1 --- a/jitcraft/Reference.h	Sat Jul 07 21:08:47 2012 -0700
    42.2 +++ b/jitcraft/Reference.h	Sat Jul 07 21:30:23 2012 -0700
    42.3 @@ -22,7 +22,7 @@
    42.4  #include "Barriers.h"
    42.5  #include "Stack.h"
    42.6  
    42.7 -namespace jc {
    42.8 +namespace ke {
    42.9  
   42.10  class Array;
   42.11  
    43.1 --- a/jitcraft/RootScopes.cpp	Sat Jul 07 21:08:47 2012 -0700
    43.2 +++ b/jitcraft/RootScopes.cpp	Sat Jul 07 21:30:23 2012 -0700
    43.3 @@ -18,7 +18,7 @@
    43.4   */
    43.5  #include "RootScopes.h"
    43.6  
    43.7 -using namespace jc;
    43.8 +using namespace ke;
    43.9  
   43.10  RootScopeManager::RootScopeManager()
   43.11    : blocks_(&first_),
    44.1 --- a/jitcraft/RootScopes.h	Sat Jul 07 21:08:47 2012 -0700
    44.2 +++ b/jitcraft/RootScopes.h	Sat Jul 07 21:30:23 2012 -0700
    44.3 @@ -22,7 +22,7 @@
    44.4  #include "Objects.h"
    44.5  #include "VirtualObjectVisitor.h"
    44.6  
    44.7 -namespace jc {
    44.8 +namespace ke {
    44.9  
   44.10  class RootScope;
   44.11  
    45.1 --- a/jitcraft/Scanner.cpp	Sat Jul 07 21:08:47 2012 -0700
    45.2 +++ b/jitcraft/Scanner.cpp	Sat Jul 07 21:30:23 2012 -0700
    45.3 @@ -21,9 +21,9 @@
    45.4  #include "Scanner.h"
    45.5  #include "Utility.h"
    45.6  
    45.7 -using namespace jc;
    45.8 +using namespace ke;
    45.9  
   45.10 -const char *jc::TokenNames[] =
   45.11 +const char *ke::TokenNames[] =
   45.12  {
   45.13  #define _(name, str) str,
   45.14      TOKENMAP(_)
    46.1 --- a/jitcraft/Scanner.h	Sat Jul 07 21:08:47 2012 -0700
    46.2 +++ b/jitcraft/Scanner.h	Sat Jul 07 21:30:23 2012 -0700
    46.3 @@ -22,7 +22,7 @@
    46.4  #include "Token.h"
    46.5  #include "CompileContext.h"
    46.6  
    46.7 -namespace jc {
    46.8 +namespace ke {
    46.9  
   46.10  class Scanner
   46.11  {
   46.12 @@ -76,6 +76,6 @@
   46.13      }
   46.14  };
   46.15  
   46.16 -} // namespace jc
   46.17 +} // namespace ke
   46.18  
   46.19  #endif // _include_jitcraft_scanner_h_
    47.1 --- a/jitcraft/Scopes.cpp	Sat Jul 07 21:08:47 2012 -0700
    47.2 +++ b/jitcraft/Scopes.cpp	Sat Jul 07 21:30:23 2012 -0700
    47.3 @@ -22,7 +22,7 @@
    47.4  #include "TypeManager.h"
    47.5  #include "Strings.h"
    47.6  
    47.7 -using namespace jc;
    47.8 +using namespace ke;
    47.9  
   47.10  Scope::Scope(PoolAllocator &pool, Kind kind, Scope *enclosing)
   47.11    : pool_(pool),
    48.1 --- a/jitcraft/Scopes.h	Sat Jul 07 21:08:47 2012 -0700
    48.2 +++ b/jitcraft/Scopes.h	Sat Jul 07 21:30:23 2012 -0700
    48.3 @@ -22,7 +22,7 @@
    48.4  #include "AST.h"
    48.5  #include "NameBinding.h"
    48.6  
    48.7 -namespace jc {
    48.8 +namespace ke {
    48.9  
   48.10  class Scope : public PoolObject
   48.11  {
    49.1 --- a/jitcraft/SemanticAnalysis.cpp	Sat Jul 07 21:08:47 2012 -0700
    49.2 +++ b/jitcraft/SemanticAnalysis.cpp	Sat Jul 07 21:30:23 2012 -0700
    49.3 @@ -24,7 +24,7 @@
    49.4  #include "Heap-inl.h"
    49.5  #include "Strings.h"
    49.6  
    49.7 -using namespace jc;
    49.8 +using namespace ke;
    49.9  
   49.10  static inline bool
   49.11  IsPrimitiveType(Type *type, PrimitiveType primitive)
    50.1 --- a/jitcraft/SemanticAnalysis.h	Sat Jul 07 21:08:47 2012 -0700
    50.2 +++ b/jitcraft/SemanticAnalysis.h	Sat Jul 07 21:30:23 2012 -0700
    50.3 @@ -22,7 +22,7 @@
    50.4  #include <assert.h>
    50.5  #include "AST.h"
    50.6  
    50.7 -namespace jc {
    50.8 +namespace ke {
    50.9  
   50.10  class SemanticAnalysis : public AstVisitor
   50.11  {
   50.12 @@ -83,6 +83,6 @@
   50.13      void visit(IncDecExpression *node);
   50.14  };
   50.15  
   50.16 -} // namespace jc
   50.17 +} // namespace ke
   50.18  
   50.19  #endif // _include_semantic_analysis_h_
    51.1 --- a/jitcraft/Spaces-inl.h	Sat Jul 07 21:08:47 2012 -0700
    51.2 +++ b/jitcraft/Spaces-inl.h	Sat Jul 07 21:30:23 2012 -0700
    51.3 @@ -19,7 +19,7 @@
    51.4  #ifndef _include_jitcraft_spaces_inl_h_
    51.5  #define _include_jitcraft_spaces_inl_h_
    51.6  
    51.7 -namespace jc {
    51.8 +namespace ke {
    51.9  
   51.10  inline Address
   51.11  HeapStack::allocate(size_t nbytes)
    52.1 --- a/jitcraft/Spaces.cpp	Sat Jul 07 21:08:47 2012 -0700
    52.2 +++ b/jitcraft/Spaces.cpp	Sat Jul 07 21:30:23 2012 -0700
    52.3 @@ -21,7 +21,7 @@
    52.4  #include "Platform.h"
    52.5  #include "Spaces-inl.h"
    52.6  
    52.7 -using namespace jc;
    52.8 +using namespace ke;
    52.9  
   52.10  HeapStack::HeapStack()
   52.11    : chunk_(NULL),
    53.1 --- a/jitcraft/Spaces.h	Sat Jul 07 21:08:47 2012 -0700
    53.2 +++ b/jitcraft/Spaces.h	Sat Jul 07 21:30:23 2012 -0700
    53.3 @@ -23,7 +23,7 @@
    53.4  #include "Utility.h"
    53.5  #include "Platform.h"
    53.6  
    53.7 -namespace jc {
    53.8 +namespace ke {
    53.9  
   53.10  class Zone;
   53.11  class Object;
    54.1 --- a/jitcraft/Stack.cpp	Sat Jul 07 21:08:47 2012 -0700
    54.2 +++ b/jitcraft/Stack.cpp	Sat Jul 07 21:30:23 2012 -0700
    54.3 @@ -22,7 +22,7 @@
    54.4  #include "Zone.h"
    54.5  #include "Heap-inl.h"
    54.6  
    54.7 -using namespace jc;
    54.8 +using namespace ke;
    54.9  
   54.10  Stack::Stack()
   54.11    : buffer_(NULL),
    55.1 --- a/jitcraft/Stack.h	Sat Jul 07 21:08:47 2012 -0700
    55.2 +++ b/jitcraft/Stack.h	Sat Jul 07 21:30:23 2012 -0700
    55.3 @@ -25,7 +25,7 @@
    55.4  #include "Functions.h"
    55.5  #include "VirtualObjectVisitor.h"
    55.6  
    55.7 -namespace jc {
    55.8 +namespace ke {
    55.9  
   55.10  class Object;
   55.11  class Array;
    56.1 --- a/jitcraft/StringPool.cpp	Sat Jul 07 21:08:47 2012 -0700
    56.2 +++ b/jitcraft/StringPool.cpp	Sat Jul 07 21:30:23 2012 -0700
    56.3 @@ -19,7 +19,7 @@
    56.4  #include "Strings.h"
    56.5  #include "Spaces.h"
    56.6  
    56.7 -using namespace jc;
    56.8 +using namespace ke;
    56.9  
   56.10  StringPool::StringPool(Zone *zone)
   56.11    : zone_(zone),
    57.1 --- a/jitcraft/StringPool.h	Sat Jul 07 21:08:47 2012 -0700
    57.2 +++ b/jitcraft/StringPool.h	Sat Jul 07 21:30:23 2012 -0700
    57.3 @@ -22,7 +22,7 @@
    57.4  #include "HashTable.h"
    57.5  #include "Strings.h"
    57.6  
    57.7 -namespace jc {
    57.8 +namespace ke {
    57.9  
   57.10  class Zone;
   57.11  class String;
    58.1 --- a/jitcraft/Strings.cpp	Sat Jul 07 21:08:47 2012 -0700
    58.2 +++ b/jitcraft/Strings.cpp	Sat Jul 07 21:30:23 2012 -0700
    58.3 @@ -20,7 +20,7 @@
    58.4  #include "Zone.h"
    58.5  #include "Heap-inl.h"
    58.6  
    58.7 -using namespace jc;
    58.8 +using namespace ke;
    58.9  
   58.10  String *
   58.11  String::New(Zone *zone, const char *from, Heap::Tenure tenure)
    59.1 --- a/jitcraft/Strings.h	Sat Jul 07 21:08:47 2012 -0700
    59.2 +++ b/jitcraft/Strings.h	Sat Jul 07 21:30:23 2012 -0700
    59.3 @@ -21,7 +21,7 @@
    59.4  
    59.5  #include "Heap.h"
    59.6  
    59.7 -namespace jc {
    59.8 +namespace ke {
    59.9  
   59.10  // A fixed-length string containing UTF-8 characters.
   59.11  class String : public Object
    60.1 --- a/jitcraft/Token.h	Sat Jul 07 21:08:47 2012 -0700
    60.2 +++ b/jitcraft/Token.h	Sat Jul 07 21:30:23 2012 -0700
    60.3 @@ -18,7 +18,7 @@
    60.4  #ifndef _include_jitcraft_token_h_
    60.5  #define _include_jitcraft_token_h_
    60.6  
    60.7 -namespace jc {
    60.8 +namespace ke {
    60.9  
   60.10  struct SourcePosition
   60.11  {
   60.12 @@ -104,6 +104,6 @@
   60.13  
   60.14  extern const char *TokenNames[];
   60.15  
   60.16 -} // namespace jc
   60.17 +} // namespace ke
   60.18  
   60.19  #endif //_include_jitcraft_token_h_
    61.1 --- a/jitcraft/TypeManager.cpp	Sat Jul 07 21:08:47 2012 -0700
    61.2 +++ b/jitcraft/TypeManager.cpp	Sat Jul 07 21:30:23 2012 -0700
    61.3 @@ -21,7 +21,7 @@
    61.4  #include "Zone.h"
    61.5  #include "Strings.h"
    61.6  
    61.7 -using namespace jc;
    61.8 +using namespace ke;
    61.9  
   61.10  
   61.11  TypeManager::TypeManager(Zone *zone)
    62.1 --- a/jitcraft/TypeManager.h	Sat Jul 07 21:08:47 2012 -0700
    62.2 +++ b/jitcraft/TypeManager.h	Sat Jul 07 21:30:23 2012 -0700
    62.3 @@ -22,7 +22,7 @@
    62.4  #include "Types.h"
    62.5  #include "VirtualObjectVisitor.h"
    62.6  
    62.7 -namespace jc {
    62.8 +namespace ke {
    62.9  
   62.10  class String;
   62.11  
    63.1 --- a/jitcraft/Types.cpp	Sat Jul 07 21:08:47 2012 -0700
    63.2 +++ b/jitcraft/Types.cpp	Sat Jul 07 21:30:23 2012 -0700
    63.3 @@ -20,7 +20,7 @@
    63.4  #include "Strings.h"
    63.5  #include "Heap-inl.h"
    63.6  
    63.7 -using namespace jc;
    63.8 +using namespace ke;
    63.9  
   63.10  Type *
   63.11  Type::NewPrimitive(Zone *zone, Handle<String> tag)
    64.1 --- a/jitcraft/Types.h	Sat Jul 07 21:08:47 2012 -0700
    64.2 +++ b/jitcraft/Types.h	Sat Jul 07 21:30:23 2012 -0700
    64.3 @@ -23,7 +23,7 @@
    64.4  #include "Barriers.h"
    64.5  #include "FixedArray.h"
    64.6  
    64.7 -namespace jc {
    64.8 +namespace ke {
    64.9  
   64.10  class String;
   64.11  
    65.1 --- a/jitcraft/Utility.h	Sat Jul 07 21:08:47 2012 -0700
    65.2 +++ b/jitcraft/Utility.h	Sat Jul 07 21:30:23 2012 -0700
    65.3 @@ -29,7 +29,7 @@
    65.4  # pragma warning(disable:4355)
    65.5  #endif
    65.6  
    65.7 -namespace jc {
    65.8 +namespace ke {
    65.9  
   65.10  static const size_t kMallocAlignment = sizeof(void *) * 2;
   65.11  
    66.1 --- a/jitcraft/Vector.h	Sat Jul 07 21:08:47 2012 -0700
    66.2 +++ b/jitcraft/Vector.h	Sat Jul 07 21:30:23 2012 -0700
    66.3 @@ -24,7 +24,7 @@
    66.4  #include "AllocatorPolicies.h"
    66.5  #include "Utility.h"
    66.6  
    66.7 -namespace jc {
    66.8 +namespace ke {
    66.9  
   66.10  template <typename T, typename AllocPolicy = NormalAllocPolicy>
   66.11  class Vector : public AllocPolicy
    67.1 --- a/jitcraft/VirtualObjectVisitor.h	Sat Jul 07 21:08:47 2012 -0700
    67.2 +++ b/jitcraft/VirtualObjectVisitor.h	Sat Jul 07 21:30:23 2012 -0700
    67.3 @@ -19,7 +19,7 @@
    67.4  #ifndef _include_jc_virtual_object_visitor_h_
    67.5  #define _include_jc_virtual_object_visitor_h_
    67.6  
    67.7 -namespace jc {
    67.8 +namespace ke {
    67.9  
   67.10  class Object;
   67.11  
    68.1 --- a/jitcraft/Zone.cpp	Sat Jul 07 21:08:47 2012 -0700
    68.2 +++ b/jitcraft/Zone.cpp	Sat Jul 07 21:30:23 2012 -0700
    68.3 @@ -21,9 +21,9 @@
    68.4  #include "TypeManager.h"
    68.5  #include "AllocatorPolicies.h"
    68.6  
    68.7 -using namespace jc;
    68.8 +using namespace ke;
    68.9  
   68.10 -Zone jc::SingleThreadedZone;
   68.11 +Zone ke::SingleThreadedZone;
   68.12  
   68.13  Zone::Zone()
   68.14    : heap_(this),
    69.1 --- a/jitcraft/Zone.h	Sat Jul 07 21:08:47 2012 -0700
    69.2 +++ b/jitcraft/Zone.h	Sat Jul 07 21:30:23 2012 -0700
    69.3 @@ -27,7 +27,7 @@
    69.4  #include "RootScopes.h"
    69.5  #include "VirtualObjectVisitor.h"
    69.6  
    69.7 -namespace jc {
    69.8 +namespace ke {
    69.9  
   69.10  class TypeManager;
   69.11  class String;
    70.1 --- a/jitcraft/jitcraft.vcxproj	Sat Jul 07 21:08:47 2012 -0700
    70.2 +++ b/jitcraft/jitcraft.vcxproj	Sat Jul 07 21:30:23 2012 -0700
    70.3 @@ -105,6 +105,7 @@
    70.4      <ClCompile Include="Zone.cpp" />
    70.5    </ItemGroup>
    70.6    <ItemGroup>
    70.7 +    <ClInclude Include="..\include\sp3api.h" />
    70.8      <ClInclude Include="AllocatorPolicies.h" />
    70.9      <ClInclude Include="Array.h" />
   70.10      <ClInclude Include="AST.h" />
   70.11 @@ -130,6 +131,7 @@
   70.12      <ClInclude Include="PoolAllocator.h" />
   70.13      <ClInclude Include="Handles.h" />
   70.14      <ClInclude Include="Reference.h" />
   70.15 +    <ClInclude Include="RootScopes.h" />
   70.16      <ClInclude Include="Scanner.h" />
   70.17      <ClInclude Include="Scopes.h" />
   70.18      <ClInclude Include="Code.h" />
   70.19 @@ -142,6 +144,7 @@
   70.20      <ClInclude Include="TypeManager.h" />
   70.21      <ClInclude Include="Types.h" />
   70.22      <ClInclude Include="Vector.h" />
   70.23 +    <ClInclude Include="VirtualObjectVisitor.h" />
   70.24      <ClInclude Include="Zone.h" />
   70.25      <ClInclude Include="Token.h" />
   70.26      <ClInclude Include="Utility.h" />
    71.1 --- a/jitcraft/main.cpp	Sat Jul 07 21:08:47 2012 -0700
    71.2 +++ b/jitcraft/main.cpp	Sat Jul 07 21:30:23 2012 -0700
    71.3 @@ -27,7 +27,7 @@
    71.4  #include "Modules.h"
    71.5  #include "RootScopes.h"
    71.6  
    71.7 -using namespace jc;
    71.8 +using namespace ke;
    71.9  
   71.10  class File
   71.11  {