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

Side by Side Diff: src/ic/arm/ic-compiler-arm.cc

Issue 527093002: Make concrete classes for individual call descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 #define __ ACCESS_MASM(masm) 14 #define __ ACCESS_MASM(masm)
15 15
16 16
17 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, 17 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm,
18 StrictMode strict_mode) { 18 StrictMode strict_mode) {
19 __ Push(StoreConvention::ReceiverRegister(), StoreConvention::NameRegister(), 19 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
20 StoreConvention::ValueRegister()); 20 StoreDescriptor::ValueRegister());
21 21
22 __ mov(r0, Operand(Smi::FromInt(strict_mode))); 22 __ mov(r0, Operand(Smi::FromInt(strict_mode)));
23 __ Push(r0); 23 __ Push(r0);
24 24
25 // Do tail-call to runtime routine. 25 // Do tail-call to runtime routine.
26 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); 26 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
27 } 27 }
28 28
29 29
30 #undef __ 30 #undef __
(...skipping 19 matching lines...) Expand all
50 } 50 }
51 } 51 }
52 52
53 Label number_case; 53 Label number_case;
54 Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; 54 Label* smi_target = IncludesNumberType(types) ? &number_case : &miss;
55 __ JumpIfSmi(receiver(), smi_target); 55 __ JumpIfSmi(receiver(), smi_target);
56 56
57 // Polymorphic keyed stores may use the map register 57 // Polymorphic keyed stores may use the map register
58 Register map_reg = scratch1(); 58 Register map_reg = scratch1();
59 DCHECK(kind() != Code::KEYED_STORE_IC || 59 DCHECK(kind() != Code::KEYED_STORE_IC ||
60 map_reg.is(StoreConvention::MapRegister())); 60 map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister()));
61 61
62 int receiver_count = types->length(); 62 int receiver_count = types->length();
63 int number_of_handled_maps = 0; 63 int number_of_handled_maps = 0;
64 __ ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); 64 __ ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
65 for (int current = 0; current < receiver_count; ++current) { 65 for (int current = 0; current < receiver_count; ++current) {
66 Handle<HeapType> type = types->at(current); 66 Handle<HeapType> type = types->at(current);
67 Handle<Map> map = IC::TypeToMap(*type, isolate()); 67 Handle<Map> map = IC::TypeToMap(*type, isolate());
68 if (!map->is_deprecated()) { 68 if (!map->is_deprecated()) {
69 number_of_handled_maps++; 69 number_of_handled_maps++;
70 __ mov(ip, Operand(map)); 70 __ mov(ip, Operand(map));
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Return the generated code. 116 // Return the generated code.
117 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); 117 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
118 } 118 }
119 119
120 120
121 #undef __ 121 #undef __
122 } 122 }
123 } // namespace v8::internal 123 } // namespace v8::internal
124 124
125 #endif // V8_TARGET_ARCH_ARM 125 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698