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

Side by Side Diff: src/mips/builtins-mips.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 unified diff | Download patch
« no previous file with comments | « src/lookup.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 72
73 // Load the built-in InternalArray function from the current context. 73 // Load the built-in InternalArray function from the current context.
74 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, 74 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm,
75 Register result) { 75 Register result) {
76 // Load the native context. 76 // Load the native context.
77 77
78 __ lw(result, 78 __ lw(result,
79 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 79 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
80 __ lw(result, 80 __ lw(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
81 FieldMemOperand(result, GlobalObject::kNativeContextOffset));
82 // Load the InternalArray function from the native context. 81 // Load the InternalArray function from the native context.
83 __ lw(result, 82 __ lw(result,
84 MemOperand(result, 83 MemOperand(result,
85 Context::SlotOffset( 84 Context::SlotOffset(
86 Context::INTERNAL_ARRAY_FUNCTION_INDEX))); 85 Context::INTERNAL_ARRAY_FUNCTION_INDEX)));
87 } 86 }
88 87
89 88
90 // Load the built-in Array function from the current context. 89 // Load the built-in Array function from the current context.
91 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { 90 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) {
92 // Load the native context. 91 // Load the native context.
93 92
94 __ lw(result, 93 __ lw(result,
95 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 94 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
96 __ lw(result, 95 __ lw(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
97 FieldMemOperand(result, GlobalObject::kNativeContextOffset));
98 // Load the Array function from the native context. 96 // Load the Array function from the native context.
99 __ lw(result, 97 __ lw(result,
100 MemOperand(result, 98 MemOperand(result,
101 Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX))); 99 Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX)));
102 } 100 }
103 101
104 102
105 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { 103 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) {
106 // ----------- S t a t e ------------- 104 // ----------- S t a t e -------------
107 // -- a0 : number of arguments 105 // -- a0 : number of arguments
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 } 1944 }
1947 } 1945 }
1948 1946
1949 1947
1950 #undef __ 1948 #undef __
1951 1949
1952 } // namespace internal 1950 } // namespace internal
1953 } // namespace v8 1951 } // namespace v8
1954 1952
1955 #endif // V8_TARGET_ARCH_MIPS 1953 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698