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

Side by Side Diff: src/x64/code-stubs-x64.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/runtime/runtime-object.cc ('k') | src/x64/full-codegen-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4357 matching lines...) Expand 10 before | Expand all | Expand 10 after
4368 4368
4369 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4369 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4370 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4370 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4371 LoadICStub stub(isolate(), state()); 4371 LoadICStub stub(isolate(), state());
4372 stub.GenerateForTrampoline(masm); 4372 stub.GenerateForTrampoline(masm);
4373 } 4373 }
4374 4374
4375 4375
4376 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4376 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4377 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); 4377 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister());
4378 KeyedLoadICStub stub(isolate(), state()); 4378 KeyedLoadICStub stub(isolate());
4379 stub.GenerateForTrampoline(masm); 4379 stub.GenerateForTrampoline(masm);
4380 } 4380 }
4381 4381
4382 4382
4383 static void HandleArrayCases(MacroAssembler* masm, Register receiver, 4383 static void HandleArrayCases(MacroAssembler* masm, Register receiver,
4384 Register key, Register vector, Register slot, 4384 Register key, Register vector, Register slot,
4385 Register feedback, Register receiver_map, 4385 Register feedback, Register receiver_map,
4386 Register scratch1, Register scratch2, 4386 Register scratch1, Register scratch2,
4387 Register scratch3, bool is_polymorphic, 4387 Register scratch3, bool is_polymorphic,
4388 Label* miss) { 4388 Label* miss) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
4547 Label polymorphic, try_poly_name; 4547 Label polymorphic, try_poly_name;
4548 __ bind(&polymorphic); 4548 __ bind(&polymorphic);
4549 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, 4549 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
4550 integer_slot, r11, r15, true, &miss); 4550 integer_slot, r11, r15, true, &miss);
4551 4551
4552 __ bind(&not_array); 4552 __ bind(&not_array);
4553 // Is it generic? 4553 // Is it generic?
4554 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); 4554 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
4555 __ j(not_equal, &try_poly_name); 4555 __ j(not_equal, &try_poly_name);
4556 Handle<Code> megamorphic_stub = 4556 Handle<Code> megamorphic_stub =
4557 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); 4557 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate());
4558 __ jmp(megamorphic_stub, RelocInfo::CODE_TARGET); 4558 __ jmp(megamorphic_stub, RelocInfo::CODE_TARGET);
4559 4559
4560 __ bind(&try_poly_name); 4560 __ bind(&try_poly_name);
4561 // We might have a name in feedback, and a fixed array in the next slot. 4561 // We might have a name in feedback, and a fixed array in the next slot.
4562 __ cmpp(key, feedback); 4562 __ cmpp(key, feedback);
4563 __ j(not_equal, &miss); 4563 __ j(not_equal, &miss);
4564 // If the name comparison succeeded, we know we have a fixed array with 4564 // If the name comparison succeeded, we know we have a fixed array with
4565 // at least one map/handler pair. 4565 // at least one map/handler pair.
4566 __ movp(feedback, FieldOperand(vector, integer_slot, times_pointer_size, 4566 __ movp(feedback, FieldOperand(vector, integer_slot, times_pointer_size,
4567 FixedArray::kHeaderSize + kPointerSize)); 4567 FixedArray::kHeaderSize + kPointerSize));
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
5426 kStackSpace, nullptr, return_value_operand, NULL); 5426 kStackSpace, nullptr, return_value_operand, NULL);
5427 } 5427 }
5428 5428
5429 5429
5430 #undef __ 5430 #undef __
5431 5431
5432 } // namespace internal 5432 } // namespace internal
5433 } // namespace v8 5433 } // namespace v8
5434 5434
5435 #endif // V8_TARGET_ARCH_X64 5435 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698