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

Side by Side Diff: src/objects.cc

Issue 2135273002: [interpreter] Reduce dependencies in bytecodes.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix static const Register definitions for bot in roll for Windows. Created 4 years, 5 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
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/runtime/runtime-interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"
41 #include "src/interpreter/interpreter.h" 42 #include "src/interpreter/interpreter.h"
42 #include "src/isolate-inl.h" 43 #include "src/isolate-inl.h"
43 #include "src/keys.h" 44 #include "src/keys.h"
44 #include "src/list.h" 45 #include "src/list.h"
45 #include "src/log.h" 46 #include "src/log.h"
46 #include "src/lookup.h" 47 #include "src/lookup.h"
47 #include "src/macro-assembler.h" 48 #include "src/macro-assembler.h"
48 #include "src/messages.h" 49 #include "src/messages.h"
49 #include "src/objects-body-descriptors-inl.h" 50 #include "src/objects-body-descriptors-inl.h"
50 #include "src/property-descriptor.h" 51 #include "src/property-descriptor.h"
(...skipping 14347 matching lines...) Expand 10 before | Expand all | Expand 10 after
14398 iterator.current_offset() == source_positions.code_offset()) { 14399 iterator.current_offset() == source_positions.code_offset()) {
14399 os << std::setw(5) << source_positions.source_position(); 14400 os << std::setw(5) << source_positions.source_position();
14400 os << (source_positions.is_statement() ? " S> " : " E> "); 14401 os << (source_positions.is_statement() ? " S> " : " E> ");
14401 source_positions.Advance(); 14402 source_positions.Advance();
14402 } else { 14403 } else {
14403 os << " "; 14404 os << " ";
14404 } 14405 }
14405 const uint8_t* current_address = base_address + iterator.current_offset(); 14406 const uint8_t* current_address = base_address + iterator.current_offset();
14406 os << reinterpret_cast<const void*>(current_address) << " @ " 14407 os << reinterpret_cast<const void*>(current_address) << " @ "
14407 << std::setw(4) << iterator.current_offset() << " : "; 14408 << std::setw(4) << iterator.current_offset() << " : ";
14408 interpreter::Bytecodes::Decode(os, current_address, parameter_count()); 14409 interpreter::BytecodeDecoder::Decode(os, current_address,
14410 parameter_count());
14409 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) { 14411 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) {
14410 const void* jump_target = base_address + iterator.GetJumpTargetOffset(); 14412 const void* jump_target = base_address + iterator.GetJumpTargetOffset();
14411 os << " (" << jump_target << " @ " << iterator.GetJumpTargetOffset() 14413 os << " (" << jump_target << " @ " << iterator.GetJumpTargetOffset()
14412 << ")"; 14414 << ")";
14413 } 14415 }
14414 os << std::endl; 14416 os << std::endl;
14415 iterator.Advance(); 14417 iterator.Advance();
14416 } 14418 }
14417 14419
14418 if (constant_pool()->length() > 0) { 14420 if (constant_pool()->length() > 0) {
(...skipping 4547 matching lines...) Expand 10 before | Expand all | Expand 10 after
18966 18968
18967 Object* data_obj = 18969 Object* data_obj =
18968 constructor->shared()->get_api_func_data()->access_check_info(); 18970 constructor->shared()->get_api_func_data()->access_check_info();
18969 if (data_obj->IsUndefined(isolate)) return nullptr; 18971 if (data_obj->IsUndefined(isolate)) return nullptr;
18970 18972
18971 return AccessCheckInfo::cast(data_obj); 18973 return AccessCheckInfo::cast(data_obj);
18972 } 18974 }
18973 18975
18974 } // namespace internal 18976 } // namespace internal
18975 } // namespace v8 18977 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/runtime/runtime-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698