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

Side by Side Diff: src/arm64/interface-descriptors-arm64.cc

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: relax dchecks Created 4 years, 1 month 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 | « no previous file | src/ast/scopes.cc » ('j') | src/ast/scopes.cc » ('J')
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/arm64/interface-descriptors-arm64.h" 5 #include "src/arm64/interface-descriptors-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; }
15 15
16 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( 16 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific(
17 CallInterfaceDescriptorData* data, int register_parameter_count) { 17 CallInterfaceDescriptorData* data, int register_parameter_count) {
18 const Register default_stub_registers[] = {x0, x1, x2, x3, x4}; 18 const Register default_stub_registers[] = {x0, x1, x2, x3, x4};
19 CHECK_LE(static_cast<size_t>(register_parameter_count), 19 CHECK_LE(static_cast<size_t>(register_parameter_count),
20 arraysize(default_stub_registers)); 20 arraysize(default_stub_registers));
21 data->InitializePlatformSpecific(register_parameter_count, 21 data->InitializePlatformSpecific(register_parameter_count,
22 default_stub_registers); 22 default_stub_registers);
23 } 23 }
24 24
25 const Register FastNewFunctionContextDescriptor::FunctionRegister() { 25 const Register FastNewFunctionContextDescriptor::FunctionRegister() {
26 return x1; 26 return x1;
27 } 27 }
28 const Register FastNewFunctionContextDescriptor::SlotsRegister() { return x0; } 28 const Register FastNewFunctionContextDescriptor::SlotsRegister() { return x0; }
29 29
30 const Register FastNewEvalContextDescriptor::FunctionRegister() { return x1; }
31 const Register FastNewEvalContextDescriptor::SlotsRegister() { return x0; }
32
30 const Register LoadDescriptor::ReceiverRegister() { return x1; } 33 const Register LoadDescriptor::ReceiverRegister() { return x1; }
31 const Register LoadDescriptor::NameRegister() { return x2; } 34 const Register LoadDescriptor::NameRegister() { return x2; }
32 const Register LoadDescriptor::SlotRegister() { return x0; } 35 const Register LoadDescriptor::SlotRegister() { return x0; }
33 36
34 37
35 const Register LoadWithVectorDescriptor::VectorRegister() { return x3; } 38 const Register LoadWithVectorDescriptor::VectorRegister() { return x3; }
36 39
37 40
38 const Register StoreDescriptor::ReceiverRegister() { return x1; } 41 const Register StoreDescriptor::ReceiverRegister() { return x1; }
39 const Register StoreDescriptor::NameRegister() { return x2; } 42 const Register StoreDescriptor::NameRegister() { return x2; }
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 x1, // the JSGeneratorObject to resume 465 x1, // the JSGeneratorObject to resume
463 x2 // the resume mode (tagged) 466 x2 // the resume mode (tagged)
464 }; 467 };
465 data->InitializePlatformSpecific(arraysize(registers), registers); 468 data->InitializePlatformSpecific(arraysize(registers), registers);
466 } 469 }
467 470
468 } // namespace internal 471 } // namespace internal
469 } // namespace v8 472 } // namespace v8
470 473
471 #endif // V8_TARGET_ARCH_ARM64 474 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | src/ast/scopes.cc » ('j') | src/ast/scopes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698