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

Side by Side Diff: runtime/vm/intermediate_language_x64.cc

Issue 1679363002: Tests that --fields_may_be_reset, --link_natives_lazily, and --no_allow_absolute_addresses work in … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2606 public: 2606 public:
2607 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) 2607 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction)
2608 : instruction_(instruction) { } 2608 : instruction_(instruction) { }
2609 2609
2610 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { 2610 virtual void EmitNativeCode(FlowGraphCompiler* compiler) {
2611 if (FLAG_use_osr && osr_entry_label()->IsLinked()) { 2611 if (FLAG_use_osr && osr_entry_label()->IsLinked()) {
2612 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); 2612 uword flags_address = Isolate::Current()->stack_overflow_flags_address();
2613 Register temp = instruction_->locs()->temp(0).reg(); 2613 Register temp = instruction_->locs()->temp(0).reg();
2614 __ Comment("CheckStackOverflowSlowPathOsr"); 2614 __ Comment("CheckStackOverflowSlowPathOsr");
2615 __ Bind(osr_entry_label()); 2615 __ Bind(osr_entry_label());
2616 ASSERT(FLAG_allow_absolute_addresses); 2616 if (FLAG_allow_absolute_addresses) {
2617 __ LoadImmediate(temp, Immediate(flags_address)); 2617 __ LoadImmediate(temp, Immediate(flags_address));
2618 __ movq(Address(temp, 0), Immediate(Isolate::kOsrRequest)); 2618 __ movq(Address(temp, 0), Immediate(Isolate::kOsrRequest));
2619 } else {
2620 __ LoadIsolate(TMP);
2621 __ movq(Address(TMP, Isolate::stack_overflow_flags_offset()),
2622 Immediate(Isolate::kOsrRequest));
2623 }
2619 } 2624 }
2620 __ Comment("CheckStackOverflowSlowPath"); 2625 __ Comment("CheckStackOverflowSlowPath");
2621 __ Bind(entry_label()); 2626 __ Bind(entry_label());
2622 compiler->SaveLiveRegisters(instruction_->locs()); 2627 compiler->SaveLiveRegisters(instruction_->locs());
2623 // pending_deoptimization_env_ is needed to generate a runtime call that 2628 // pending_deoptimization_env_ is needed to generate a runtime call that
2624 // may throw an exception. 2629 // may throw an exception.
2625 ASSERT(compiler->pending_deoptimization_env_ == NULL); 2630 ASSERT(compiler->pending_deoptimization_env_ == NULL);
2626 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 2631 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
2627 compiler->pending_deoptimization_env_ = env; 2632 compiler->pending_deoptimization_env_ = env;
2628 compiler->GenerateRuntimeCall(instruction_->token_pos(), 2633 compiler->GenerateRuntimeCall(instruction_->token_pos(),
(...skipping 3830 matching lines...) Expand 10 before | Expand all | Expand 10 after
6459 __ Drop(1); 6464 __ Drop(1);
6460 __ popq(result); 6465 __ popq(result);
6461 } 6466 }
6462 6467
6463 6468
6464 } // namespace dart 6469 } // namespace dart
6465 6470
6466 #undef __ 6471 #undef __
6467 6472
6468 #endif // defined TARGET_ARCH_X64 6473 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698