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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 962263002: Disallow subclassing Arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for debug-code issues Created 5 years, 9 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/code-stubs-x64.cc ('k') | test/mjsunit/harmony/regress/regress-3930.js » ('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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4099 matching lines...) Expand 10 before | Expand all | Expand 10 after
4110 Label loop; 4110 Label loop;
4111 __ bind(&loop); 4111 __ bind(&loop);
4112 __ Push(Operand(rdx, -1 * kPointerSize)); 4112 __ Push(Operand(rdx, -1 * kPointerSize));
4113 __ subp(rdx, Immediate(kPointerSize)); 4113 __ subp(rdx, Immediate(kPointerSize));
4114 __ decp(rcx); 4114 __ decp(rcx);
4115 __ j(not_zero, &loop); 4115 __ j(not_zero, &loop);
4116 } 4116 }
4117 4117
4118 __ bind(&args_set_up); 4118 __ bind(&args_set_up);
4119 __ movp(rdi, Operand(rsp, rax, times_pointer_size, 0)); 4119 __ movp(rdi, Operand(rsp, rax, times_pointer_size, 0));
4120 __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex);
4120 4121
4121 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); 4122 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL);
4122 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 4123 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
4123 4124
4124 __ Drop(1); 4125 __ Drop(1);
4125 4126
4126 context()->Plug(result_register()); 4127 context()->Plug(result_register());
4127 } 4128 }
4128 4129
4129 4130
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
5385 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5386 Assembler::target_address_at(call_target_address, 5387 Assembler::target_address_at(call_target_address,
5387 unoptimized_code)); 5388 unoptimized_code));
5388 return OSR_AFTER_STACK_CHECK; 5389 return OSR_AFTER_STACK_CHECK;
5389 } 5390 }
5390 5391
5391 5392
5392 } } // namespace v8::internal 5393 } } // namespace v8::internal
5393 5394
5394 #endif // V8_TARGET_ARCH_X64 5395 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/mjsunit/harmony/regress/regress-3930.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698