Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 <setjmp.h> // NOLINT | 5 #include <setjmp.h> // NOLINT |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #if defined(TARGET_ARCH_DBC) | 9 #if defined(TARGET_ARCH_DBC) |
| 10 | 10 |
| (...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1379 // Check if single stepping. | 1379 // Check if single stepping. |
| 1380 if (thread->isolate()->single_step()) { | 1380 if (thread->isolate()->single_step()) { |
| 1381 Exit(thread, FP, SP + 1, pc); | 1381 Exit(thread, FP, SP + 1, pc); |
| 1382 NativeArguments args(thread, 0, NULL, NULL); | 1382 NativeArguments args(thread, 0, NULL, NULL); |
| 1383 INVOKE_RUNTIME(DRT_SingleStepHandler, args); | 1383 INVOKE_RUNTIME(DRT_SingleStepHandler, args); |
| 1384 } | 1384 } |
| 1385 | 1385 |
| 1386 // Invoke target function. | 1386 // Invoke target function. |
| 1387 { | 1387 { |
| 1388 const uint16_t argc = rA; | 1388 const uint16_t argc = rA; |
| 1389 RawObject* ic_data_obj = LOAD_CONSTANT(Bytecode::DecodeD(*pc)); | |
|
Vyacheslav Egorov (Google)
2016/07/18 13:52:46
pc++ to skip NOP?
zra
2016/07/18 17:38:47
No more NOP after other changes.
| |
| 1389 RawObject** call_base = SP - argc; | 1390 RawObject** call_base = SP - argc; |
| 1390 RawObject** call_top = SP; // *SP contains function | 1391 RawObject** call_top = SP; // *SP contains function |
| 1392 if (ic_data_obj != null_value) { | |
| 1393 RawICData* ic_data = RAW_CAST(ICData, ic_data_obj); | |
| 1394 RawArray* cache = ic_data->ptr()->ic_data_->ptr(); | |
| 1395 *SP = cache->data()[ICData::TargetIndexFor( | |
| 1396 ic_data->ptr()->state_bits_ & 0x3)]; | |
| 1397 } | |
| 1391 argdesc = static_cast<RawArray*>(LOAD_CONSTANT(rD)); | 1398 argdesc = static_cast<RawArray*>(LOAD_CONSTANT(rD)); |
| 1392 Invoke(thread, call_base, call_top, &pp, &pc, &FP, &SP); | 1399 Invoke(thread, call_base, call_top, &pp, &pc, &FP, &SP); |
| 1393 } | 1400 } |
| 1394 | 1401 |
| 1395 DISPATCH(); | 1402 DISPATCH(); |
| 1396 } | 1403 } |
| 1397 | 1404 |
| 1398 { | 1405 { |
| 1406 BYTECODE(OptimizedStaticCall, A_D); | |
| 1407 const uint16_t argc = rA; | |
| 1408 RawObject** call_base = SP - argc; | |
| 1409 RawObject** call_top = SP; // *SP contains function | |
| 1410 argdesc = static_cast<RawArray*>(LOAD_CONSTANT(rD)); | |
| 1411 Invoke(thread, call_base, call_top, &pp, &pc, &FP, &SP); | |
| 1412 DISPATCH(); | |
| 1413 } | |
| 1414 | |
| 1415 { | |
| 1399 BYTECODE(InstanceCall1, A_D); | 1416 BYTECODE(InstanceCall1, A_D); |
| 1400 | 1417 |
| 1401 // Check if single stepping. | 1418 // Check if single stepping. |
| 1402 if (thread->isolate()->single_step()) { | 1419 if (thread->isolate()->single_step()) { |
| 1403 Exit(thread, FP, SP + 1, pc); | 1420 Exit(thread, FP, SP + 1, pc); |
| 1404 NativeArguments args(thread, 0, NULL, NULL); | 1421 NativeArguments args(thread, 0, NULL, NULL); |
| 1405 INVOKE_RUNTIME(DRT_SingleStepHandler, args); | 1422 INVOKE_RUNTIME(DRT_SingleStepHandler, args); |
| 1406 } | 1423 } |
| 1407 | 1424 |
| 1408 { | 1425 { |
| (...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2794 pc_ = pc; | 2811 pc_ = pc; |
| 2795 special_[kExceptionSpecialIndex] = raw_exception; | 2812 special_[kExceptionSpecialIndex] = raw_exception; |
| 2796 special_[kStacktraceSpecialIndex] = raw_stacktrace; | 2813 special_[kStacktraceSpecialIndex] = raw_stacktrace; |
| 2797 buf->Longjmp(); | 2814 buf->Longjmp(); |
| 2798 UNREACHABLE(); | 2815 UNREACHABLE(); |
| 2799 } | 2816 } |
| 2800 | 2817 |
| 2801 } // namespace dart | 2818 } // namespace dart |
| 2802 | 2819 |
| 2803 #endif // defined TARGET_ARCH_DBC | 2820 #endif // defined TARGET_ARCH_DBC |
| OLD | NEW |