OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "src/execution.h" | 31 #include "src/execution.h" |
32 #include "src/field-index-inl.h" | 32 #include "src/field-index-inl.h" |
33 #include "src/field-index.h" | 33 #include "src/field-index.h" |
34 #include "src/field-type.h" | 34 #include "src/field-type.h" |
35 #include "src/frames-inl.h" | 35 #include "src/frames-inl.h" |
36 #include "src/full-codegen/full-codegen.h" | 36 #include "src/full-codegen/full-codegen.h" |
37 #include "src/globals.h" | 37 #include "src/globals.h" |
38 #include "src/ic/ic.h" | 38 #include "src/ic/ic.h" |
39 #include "src/identity-map.h" | 39 #include "src/identity-map.h" |
40 #include "src/interpreter/bytecode-array-iterator.h" | 40 #include "src/interpreter/bytecode-array-iterator.h" |
41 #include "src/interpreter/bytecode-decoder.h" | |
42 #include "src/interpreter/interpreter.h" | 41 #include "src/interpreter/interpreter.h" |
43 #include "src/isolate-inl.h" | 42 #include "src/isolate-inl.h" |
44 #include "src/keys.h" | 43 #include "src/keys.h" |
45 #include "src/list.h" | 44 #include "src/list.h" |
46 #include "src/log.h" | 45 #include "src/log.h" |
47 #include "src/lookup.h" | 46 #include "src/lookup.h" |
48 #include "src/macro-assembler.h" | 47 #include "src/macro-assembler.h" |
49 #include "src/messages.h" | 48 #include "src/messages.h" |
50 #include "src/objects-body-descriptors-inl.h" | 49 #include "src/objects-body-descriptors-inl.h" |
51 #include "src/property-descriptor.h" | 50 #include "src/property-descriptor.h" |
(...skipping 14347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14399 iterator.current_offset() == source_positions.code_offset()) { | 14398 iterator.current_offset() == source_positions.code_offset()) { |
14400 os << std::setw(5) << source_positions.source_position(); | 14399 os << std::setw(5) << source_positions.source_position(); |
14401 os << (source_positions.is_statement() ? " S> " : " E> "); | 14400 os << (source_positions.is_statement() ? " S> " : " E> "); |
14402 source_positions.Advance(); | 14401 source_positions.Advance(); |
14403 } else { | 14402 } else { |
14404 os << " "; | 14403 os << " "; |
14405 } | 14404 } |
14406 const uint8_t* current_address = base_address + iterator.current_offset(); | 14405 const uint8_t* current_address = base_address + iterator.current_offset(); |
14407 os << reinterpret_cast<const void*>(current_address) << " @ " | 14406 os << reinterpret_cast<const void*>(current_address) << " @ " |
14408 << std::setw(4) << iterator.current_offset() << " : "; | 14407 << std::setw(4) << iterator.current_offset() << " : "; |
14409 interpreter::BytecodeDecoder::Decode(os, current_address, | 14408 interpreter::Bytecodes::Decode(os, current_address, parameter_count()); |
14410 parameter_count()); | |
14411 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) { | 14409 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) { |
14412 const void* jump_target = base_address + iterator.GetJumpTargetOffset(); | 14410 const void* jump_target = base_address + iterator.GetJumpTargetOffset(); |
14413 os << " (" << jump_target << " @ " << iterator.GetJumpTargetOffset() | 14411 os << " (" << jump_target << " @ " << iterator.GetJumpTargetOffset() |
14414 << ")"; | 14412 << ")"; |
14415 } | 14413 } |
14416 os << std::endl; | 14414 os << std::endl; |
14417 iterator.Advance(); | 14415 iterator.Advance(); |
14418 } | 14416 } |
14419 | 14417 |
14420 if (constant_pool()->length() > 0) { | 14418 if (constant_pool()->length() > 0) { |
(...skipping 4547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18968 | 18966 |
18969 Object* data_obj = | 18967 Object* data_obj = |
18970 constructor->shared()->get_api_func_data()->access_check_info(); | 18968 constructor->shared()->get_api_func_data()->access_check_info(); |
18971 if (data_obj->IsUndefined(isolate)) return nullptr; | 18969 if (data_obj->IsUndefined(isolate)) return nullptr; |
18972 | 18970 |
18973 return AccessCheckInfo::cast(data_obj); | 18971 return AccessCheckInfo::cast(data_obj); |
18974 } | 18972 } |
18975 | 18973 |
18976 } // namespace internal | 18974 } // namespace internal |
18977 } // namespace v8 | 18975 } // namespace v8 |
OLD | NEW |