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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 442763002: Load constants from the DescriptorArray (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also removed from arm64 Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « src/lookup.cc ('k') | src/mips64/stub-cache-mips64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 if (!miss->is_unused()) { 833 if (!miss->is_unused()) {
834 Label success; 834 Label success;
835 __ Branch(&success); 835 __ Branch(&success);
836 GenerateRestoreName(miss, name); 836 GenerateRestoreName(miss, name);
837 TailCallBuiltin(masm(), MissBuiltin(kind())); 837 TailCallBuiltin(masm(), MissBuiltin(kind()));
838 __ bind(&success); 838 __ bind(&success);
839 } 839 }
840 } 840 }
841 841
842 842
843 void NamedLoadHandlerCompiler::GenerateLoadField(
844 Register reg, FieldIndex field, Representation representation) {
845 if (!reg.is(receiver())) __ mov(receiver(), reg);
846 LoadFieldStub stub(isolate(), field);
847 GenerateTailCall(masm(), stub.GetCode());
848 }
849
850
851 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { 843 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) {
852 // Return the constant value. 844 // Return the constant value.
853 __ li(v0, value); 845 __ li(v0, value);
854 __ Ret(); 846 __ Ret();
855 } 847 }
856 848
857 849
858 void NamedLoadHandlerCompiler::GenerateLoadCallback( 850 void NamedLoadHandlerCompiler::GenerateLoadCallback(
859 Register reg, Handle<ExecutableAccessorInfo> callback) { 851 Register reg, Handle<ExecutableAccessorInfo> callback) {
860 // Build AccessorInfo::args_ list on the stack and push property name below 852 // Build AccessorInfo::args_ list on the stack and push property name below
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 1279
1288 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1280 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1289 } 1281 }
1290 1282
1291 1283
1292 #undef __ 1284 #undef __
1293 1285
1294 } } // namespace v8::internal 1286 } } // namespace v8::internal
1295 1287
1296 #endif // V8_TARGET_ARCH_MIPS 1288 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/mips64/stub-cache-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698