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

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: 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
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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 841
842 842
843 void NamedLoadHandlerCompiler::GenerateLoadField( 843 void NamedLoadHandlerCompiler::GenerateLoadField(
844 Register reg, FieldIndex field, Representation representation) { 844 Register reg, FieldIndex field, Representation representation) {
845 if (!reg.is(receiver())) __ mov(receiver(), reg); 845 if (!reg.is(receiver())) __ mov(receiver(), reg);
846 LoadFieldStub stub(isolate(), field); 846 LoadFieldStub stub(isolate(), field);
847 GenerateTailCall(masm(), stub.GetCode()); 847 GenerateTailCall(masm(), stub.GetCode());
848 } 848 }
849 849
850 850
851 void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg,
852 int constant_index) {
853 if (!reg.is(receiver())) __ mov(receiver(), reg);
854 LoadConstantStub stub(isolate(), constant_index);
855 GenerateTailCall(masm(), stub.GetCode());
856 }
857
858
851 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { 859 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) {
852 // Return the constant value. 860 // Return the constant value.
853 __ li(v0, value); 861 __ li(v0, value);
854 __ Ret(); 862 __ Ret();
855 } 863 }
856 864
857 865
858 void NamedLoadHandlerCompiler::GenerateLoadCallback( 866 void NamedLoadHandlerCompiler::GenerateLoadCallback(
859 Register reg, Handle<ExecutableAccessorInfo> callback) { 867 Register reg, Handle<ExecutableAccessorInfo> callback) {
860 // Build AccessorInfo::args_ list on the stack and push property name below 868 // 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 1295
1288 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1296 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1289 } 1297 }
1290 1298
1291 1299
1292 #undef __ 1300 #undef __
1293 1301
1294 } } // namespace v8::internal 1302 } } // namespace v8::internal
1295 1303
1296 #endif // V8_TARGET_ARCH_MIPS 1304 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698