Rename PLACEHOLDER code kind to WASM_FUNCTION.
authortitzer <titzer@chromium.org>
Wed, 23 Sep 2015 15:08:27 +0000 (08:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 23 Sep 2015 15:09:04 +0000 (15:09 +0000)
R=mstarzinger@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1365613002

Cr-Commit-Position: refs/heads/master@{#30893}

src/log.cc
src/objects.h
src/snapshot/serialize.cc

index 0209f95b85269ee90d4ec7f25f33a5415802b4cf..00a4fe8f4b5ad80bf0e51a69b68a7b8e5dc31e0c 100644 (file)
@@ -1645,8 +1645,8 @@ void Logger::LogCodeObject(Object* object) {
       description = "A keyed store IC from the snapshot";
       tag = Logger::KEYED_STORE_IC_TAG;
       break;
-    case Code::PLACEHOLDER:
-      description = "A placeholder for linking later code";
+    case Code::WASM_FUNCTION:
+      description = "A wasm function";
       tag = Logger::STUB_TAG;
       break;
     case Code::NUMBER_OF_KINDS:
index f859318df180e1da45bc7e5560ee78d58d2b5bdb..572f26ceed5312abcd6185f6c027802146b3831a 100644 (file)
@@ -4621,7 +4621,7 @@ class Code: public HeapObject {
   V(HANDLER)                \
   V(BUILTIN)                \
   V(REGEXP)                 \
-  V(PLACEHOLDER)
+  V(WASM_FUNCTION)
 
 #define IC_KIND_LIST(V) \
   V(LOAD_IC)            \
index 2d52053294dbd6e2acd99359bdc3d87ca1dbdffb..0e60299f731950db53cd7a5ba871d370374cf063 100644 (file)
@@ -2481,7 +2481,7 @@ void CodeSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code,
           SerializeGeneric(code_object, how_to_code, where_to_point);
         }
         return;
-      case Code::PLACEHOLDER:
+      case Code::WASM_FUNCTION:
         UNREACHABLE();
     }
     UNREACHABLE();