Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1524)

Unified Diff: src/ppc/macro-assembler-ppc.cc

Issue 1406113007: Merge GlobalObject with JSGlobalObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/macro-assembler-ppc.cc
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
index 9ef6052a95dfb7c35d8d5c28c1c4c24ec1fe7749..49ec792d44dbeb3d890083902f7ad96e30138e56 100644
--- a/src/ppc/macro-assembler-ppc.cc
+++ b/src/ppc/macro-assembler-ppc.cc
@@ -1211,7 +1211,8 @@ void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg,
int offset =
Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize;
LoadP(scratch, FieldMemOperand(scratch, offset));
- LoadP(scratch, FieldMemOperand(scratch, GlobalObject::kNativeContextOffset));
+ LoadP(scratch,
+ FieldMemOperand(scratch, JSGlobalObject::kNativeContextOffset));
// Check the context is a native context.
if (emit_debug_code()) {
@@ -2278,7 +2279,7 @@ void MacroAssembler::GetBuiltinFunction(Register target,
// Load the builtins object into target register.
LoadP(target,
MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
- LoadP(target, FieldMemOperand(target, GlobalObject::kNativeContextOffset));
+ LoadP(target, FieldMemOperand(target, JSGlobalObject::kNativeContextOffset));
// Load the JavaScript builtin function from the builtins object.
LoadP(target, ContextOperand(target, native_context_index), r0);
}
@@ -2413,7 +2414,7 @@ void MacroAssembler::LoadContext(Register dst, int context_chain_length) {
void MacroAssembler::LoadGlobalProxy(Register dst) {
LoadP(dst, GlobalObjectOperand());
- LoadP(dst, FieldMemOperand(dst, GlobalObject::kGlobalProxyOffset));
+ LoadP(dst, FieldMemOperand(dst, JSGlobalObject::kGlobalProxyOffset));
}
@@ -2423,7 +2424,8 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
// Load the global or builtins object from the current context.
LoadP(scratch,
MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
- LoadP(scratch, FieldMemOperand(scratch, GlobalObject::kNativeContextOffset));
+ LoadP(scratch,
+ FieldMemOperand(scratch, JSGlobalObject::kNativeContextOffset));
// Check that the function's map is the same as the expected cached map.
LoadP(scratch,
@@ -2445,7 +2447,7 @@ void MacroAssembler::LoadGlobalFunction(int index, Register function) {
MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
// Load the native context from the global or builtins object.
LoadP(function,
- FieldMemOperand(function, GlobalObject::kNativeContextOffset));
+ FieldMemOperand(function, JSGlobalObject::kNativeContextOffset));
// Load the function from the native context.
LoadP(function, MemOperand(function, Context::SlotOffset(index)), r0);
}
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698