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

Side by Side Diff: src/arm/stub-cache-arm.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
« no previous file with comments | « no previous file | src/arm64/stub-cache-arm64.cc » ('j') | src/ia32/stub-cache-ia32.cc » ('J')
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_ARM 7 #if V8_TARGET_ARCH_ARM
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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 842
843 843
844 void NamedLoadHandlerCompiler::GenerateLoadField( 844 void NamedLoadHandlerCompiler::GenerateLoadField(
845 Register reg, FieldIndex field, Representation representation) { 845 Register reg, FieldIndex field, Representation representation) {
846 if (!reg.is(receiver())) __ mov(receiver(), reg); 846 if (!reg.is(receiver())) __ mov(receiver(), reg);
847 LoadFieldStub stub(isolate(), field); 847 LoadFieldStub stub(isolate(), field);
848 GenerateTailCall(masm(), stub.GetCode()); 848 GenerateTailCall(masm(), stub.GetCode());
849 } 849 }
850 850
851 851
852 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { 852 void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg,
853 // Return the constant value. 853 int constant_index) {
854 __ Move(r0, value); 854 if (!reg.is(receiver())) __ mov(receiver(), reg);
855 __ Ret(); 855 LoadConstantStub stub(isolate(), constant_index);
856 GenerateTailCall(masm(), stub.GetCode());
856 } 857 }
857 858
858 859
859 void NamedLoadHandlerCompiler::GenerateLoadCallback( 860 void NamedLoadHandlerCompiler::GenerateLoadCallback(
860 Register reg, Handle<ExecutableAccessorInfo> callback) { 861 Register reg, Handle<ExecutableAccessorInfo> callback) {
861 // Build AccessorInfo::args_ list on the stack and push property name below 862 // Build AccessorInfo::args_ list on the stack and push property name below
862 // the exit frame to make GC aware of them and store pointers to them. 863 // the exit frame to make GC aware of them and store pointers to them.
863 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); 864 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0);
864 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); 865 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1);
865 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); 866 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2);
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 1287
1287 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1288 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1288 } 1289 }
1289 1290
1290 1291
1291 #undef __ 1292 #undef __
1292 1293
1293 } } // namespace v8::internal 1294 } } // namespace v8::internal
1294 1295
1295 #endif // V8_TARGET_ARCH_ARM 1296 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/stub-cache-arm64.cc » ('j') | src/ia32/stub-cache-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698