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

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 1189153002: Revert of [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/full-codegen-x87.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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 4072 matching lines...) Expand 10 before | Expand all | Expand 10 after
4083 4083
4084 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4084 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4085 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4085 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4086 LoadICStub stub(isolate(), state()); 4086 LoadICStub stub(isolate(), state());
4087 stub.GenerateForTrampoline(masm); 4087 stub.GenerateForTrampoline(masm);
4088 } 4088 }
4089 4089
4090 4090
4091 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4091 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4092 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4092 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4093 KeyedLoadICStub stub(isolate(), state()); 4093 KeyedLoadICStub stub(isolate());
4094 stub.GenerateForTrampoline(masm); 4094 stub.GenerateForTrampoline(masm);
4095 } 4095 }
4096 4096
4097 4097
4098 static void HandleArrayCases(MacroAssembler* masm, Register receiver, 4098 static void HandleArrayCases(MacroAssembler* masm, Register receiver,
4099 Register key, Register vector, Register slot, 4099 Register key, Register vector, Register slot,
4100 Register feedback, bool is_polymorphic, 4100 Register feedback, bool is_polymorphic,
4101 Label* miss) { 4101 Label* miss) {
4102 // feedback initially contains the feedback array 4102 // feedback initially contains the feedback array
4103 Label next, next_loop, prepare_next; 4103 Label next, next_loop, prepare_next;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
4287 // We have a polymorphic element handler. 4287 // We have a polymorphic element handler.
4288 Label polymorphic, try_poly_name; 4288 Label polymorphic, try_poly_name;
4289 __ bind(&polymorphic); 4289 __ bind(&polymorphic);
4290 HandleArrayCases(masm, receiver, key, vector, slot, feedback, true, &miss); 4290 HandleArrayCases(masm, receiver, key, vector, slot, feedback, true, &miss);
4291 4291
4292 __ bind(&not_array); 4292 __ bind(&not_array);
4293 // Is it generic? 4293 // Is it generic?
4294 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); 4294 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
4295 __ j(not_equal, &try_poly_name); 4295 __ j(not_equal, &try_poly_name);
4296 Handle<Code> megamorphic_stub = 4296 Handle<Code> megamorphic_stub =
4297 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); 4297 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate());
4298 __ jmp(megamorphic_stub, RelocInfo::CODE_TARGET); 4298 __ jmp(megamorphic_stub, RelocInfo::CODE_TARGET);
4299 4299
4300 __ bind(&try_poly_name); 4300 __ bind(&try_poly_name);
4301 // We might have a name in feedback, and a fixed array in the next slot. 4301 // We might have a name in feedback, and a fixed array in the next slot.
4302 __ cmp(key, feedback); 4302 __ cmp(key, feedback);
4303 __ j(not_equal, &miss); 4303 __ j(not_equal, &miss);
4304 // If the name comparison succeeded, we know we have a fixed array with 4304 // If the name comparison succeeded, we know we have a fixed array with
4305 // at least one map/handler pair. 4305 // at least one map/handler pair.
4306 __ mov(feedback, FieldOperand(vector, slot, times_half_pointer_size, 4306 __ mov(feedback, FieldOperand(vector, slot, times_half_pointer_size,
4307 FixedArray::kHeaderSize + kPointerSize)); 4307 FixedArray::kHeaderSize + kPointerSize));
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
5138 Operand(ebp, 7 * kPointerSize), NULL); 5138 Operand(ebp, 7 * kPointerSize), NULL);
5139 } 5139 }
5140 5140
5141 5141
5142 #undef __ 5142 #undef __
5143 5143
5144 } // namespace internal 5144 } // namespace internal
5145 } // namespace v8 5145 } // namespace v8
5146 5146
5147 #endif // V8_TARGET_ARCH_X87 5147 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698