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

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

Issue 1152093003: [strong] create strong array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback 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/code-stubs-x64.cc ('k') | src/x87/code-stubs-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_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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 255 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
256 --num_parameters; 256 --num_parameters;
257 ++rest_index; 257 ++rest_index;
258 } 258 }
259 259
260 __ leap(rdx, 260 __ leap(rdx,
261 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); 261 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset));
262 __ Push(rdx); 262 __ Push(rdx);
263 __ Push(Smi::FromInt(num_parameters)); 263 __ Push(Smi::FromInt(num_parameters));
264 __ Push(Smi::FromInt(rest_index)); 264 __ Push(Smi::FromInt(rest_index));
265 __ Push(Smi::FromInt(language_mode()));
265 266
266 RestParamAccessStub stub(isolate()); 267 RestParamAccessStub stub(isolate());
267 __ CallStub(&stub); 268 __ CallStub(&stub);
268 269
269 SetVar(rest_param, rax, rbx, rdx); 270 SetVar(rest_param, rax, rbx, rdx);
270 } 271 }
271 272
272 // Possibly allocate an arguments object. 273 // Possibly allocate an arguments object.
273 Variable* arguments = scope()->arguments(); 274 Variable* arguments = scope()->arguments();
274 if (arguments != NULL) { 275 if (arguments != NULL) {
(...skipping 5177 matching lines...) Expand 10 before | Expand all | Expand 10 after
5452 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5453 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5453 Assembler::target_address_at(call_target_address, 5454 Assembler::target_address_at(call_target_address,
5454 unoptimized_code)); 5455 unoptimized_code));
5455 return OSR_AFTER_STACK_CHECK; 5456 return OSR_AFTER_STACK_CHECK;
5456 } 5457 }
5457 5458
5458 5459
5459 } } // namespace v8::internal 5460 } } // namespace v8::internal
5460 5461
5461 #endif // V8_TARGET_ARCH_X64 5462 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698