Reviewers: mvstanton,
Message:
PTAL
Description:
Rename StubType MAP_TRANSITION to TRANSITION.
Please review this at https://chromiumcodereview.appspot.com/24120007/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+5, -5 lines):
M src/objects.h
M src/objects.cc
M src/stub-cache.cc
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
bb78a8e72426e73df043a1a1f90fd8d0bffc08f6..d586c4abf7e292da963c6f2aba3f031ce1b9b700
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10784,7 +10784,7 @@ const char* Code::StubType2String(StubType type) {
case CONSTANT: return "CONSTANT";
case CALLBACKS: return "CALLBACKS";
case INTERCEPTOR: return "INTERCEPTOR";
- case MAP_TRANSITION: return "MAP_TRANSITION";
+ case TRANSITION: return "TRANSITION";
case NONEXISTENT: return "NONEXISTENT";
}
UNREACHABLE(); // keep the compiler happy
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index
9ddf10ffcd14e109b86a52d1a806f91e7f4f199c..e5c1a2247986cd9553aa5ddd1d2aafb61ddd5dd9
100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4812,7 +4812,7 @@ class Code: public HeapObject {
CONSTANT,
CALLBACKS,
INTERCEPTOR,
- MAP_TRANSITION,
+ TRANSITION,
NONEXISTENT
};
Index: src/stub-cache.cc
diff --git a/src/stub-cache.cc b/src/stub-cache.cc
index
7b23d0c96abf9ee6a14b4d6c61a38ce33b167626..338ed2aaa0a2d890435366419b26ee080e9cd113
100644
--- a/src/stub-cache.cc
+++ b/src/stub-cache.cc
@@ -520,7 +520,7 @@ Handle<Code>
StubCache::ComputeStoreTransition(Handle<Name> name,
Handle<Map> transition,
StrictModeFlag strict_mode)
{
Handle<Code> stub = FindStoreHandler(
- name, receiver, Code::STORE_IC, Code::MAP_TRANSITION, strict_mode);
+ name, receiver, Code::STORE_IC, Code::TRANSITION, strict_mode);
if (!stub.is_null()) return stub;
StoreStubCompiler compiler(isolate_, strict_mode);
@@ -702,7 +702,7 @@ Handle<Code> StubCache::ComputeKeyedStoreTransition(
Handle<Map> transition,
StrictModeFlag strict_mode) {
Handle<Code> stub = FindStoreHandler(
- name, receiver, Code::KEYED_STORE_IC, Code::MAP_TRANSITION,
strict_mode);
+ name, receiver, Code::KEYED_STORE_IC, Code::TRANSITION, strict_mode);
if (!stub.is_null()) return stub;
KeyedStoreStubCompiler compiler(isolate(), strict_mode, STANDARD_STORE);
@@ -1849,7 +1849,7 @@ Handle<Code>
BaseStoreStubCompiler::CompileStoreTransition(
TailCallBuiltin(masm(), SlowBuiltin(kind()));
// Return the generated code.
- return GetCode(kind(), Code::MAP_TRANSITION, name);
+ return GetCode(kind(), Code::TRANSITION, name);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.