OLD | NEW |
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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 6396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6407 ASSERT(!compiler->is_optimizing()); | 6407 ASSERT(!compiler->is_optimizing()); |
6408 StubCode* stub_code = compiler->isolate()->stub_code(); | 6408 StubCode* stub_code = compiler->isolate()->stub_code(); |
6409 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 6409 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
6410 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 6410 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
6411 #if defined(DEBUG) | 6411 #if defined(DEBUG) |
6412 __ movq(R10, Immediate(kInvalidObjectPointer)); | 6412 __ movq(R10, Immediate(kInvalidObjectPointer)); |
6413 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 6413 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
6414 #endif | 6414 #endif |
6415 } | 6415 } |
6416 | 6416 |
| 6417 |
| 6418 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( |
| 6419 Zone* zone, bool opt) const { |
| 6420 const intptr_t kNumInputs = 1; |
| 6421 const intptr_t kNumTemps = 0; |
| 6422 LocationSummary* locs = new(zone) LocationSummary( |
| 6423 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 6424 locs->set_in(0, Location::RegisterLocation(RAX)); |
| 6425 locs->set_out(0, Location::RegisterLocation(RAX)); |
| 6426 return locs; |
| 6427 } |
| 6428 |
| 6429 |
| 6430 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6431 const Register typed_data = locs()->in(0).reg(); |
| 6432 const Register result = locs()->out(0).reg(); |
| 6433 __ PushObject(Object::null_object(), PP); |
| 6434 __ pushq(typed_data); |
| 6435 compiler->GenerateRuntimeCall(Scanner::kNoSourcePos, // No token position. |
| 6436 deopt_id(), |
| 6437 kGrowRegExpStackRuntimeEntry, |
| 6438 1, |
| 6439 locs()); |
| 6440 __ Drop(1); |
| 6441 __ popq(result); |
| 6442 } |
| 6443 |
| 6444 |
6417 } // namespace dart | 6445 } // namespace dart |
6418 | 6446 |
6419 #undef __ | 6447 #undef __ |
6420 | 6448 |
6421 #endif // defined TARGET_ARCH_X64 | 6449 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |