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

Side by Side Diff: src/objects.cc

Issue 2149093002: Reland "[interpreter] Reduce dependencies in bytecodes.{h,cc}" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 14314 matching lines...) Expand 10 before | Expand all | Expand 10 after
14365 iterator.current_offset() == source_positions.code_offset()) { 14366 iterator.current_offset() == source_positions.code_offset()) {
14366 os << std::setw(5) << source_positions.source_position(); 14367 os << std::setw(5) << source_positions.source_position();
14367 os << (source_positions.is_statement() ? " S> " : " E> "); 14368 os << (source_positions.is_statement() ? " S> " : " E> ");
14368 source_positions.Advance(); 14369 source_positions.Advance();
14369 } else { 14370 } else {
14370 os << " "; 14371 os << " ";
14371 } 14372 }
14372 const uint8_t* current_address = base_address + iterator.current_offset(); 14373 const uint8_t* current_address = base_address + iterator.current_offset();
14373 os << reinterpret_cast<const void*>(current_address) << " @ " 14374 os << reinterpret_cast<const void*>(current_address) << " @ "
14374 << std::setw(4) << iterator.current_offset() << " : "; 14375 << std::setw(4) << iterator.current_offset() << " : ";
14375 interpreter::Bytecodes::Decode(os, current_address, parameter_count()); 14376 interpreter::BytecodeDecoder::Decode(os, current_address,
14377 parameter_count());
14376 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) { 14378 if (interpreter::Bytecodes::IsJump(iterator.current_bytecode())) {
14377 const void* jump_target = base_address + iterator.GetJumpTargetOffset(); 14379 const void* jump_target = base_address + iterator.GetJumpTargetOffset();
14378 os << " (" << jump_target << " @ " << iterator.GetJumpTargetOffset() 14380 os << " (" << jump_target << " @ " << iterator.GetJumpTargetOffset()
14379 << ")"; 14381 << ")";
14380 } 14382 }
14381 os << std::endl; 14383 os << std::endl;
14382 iterator.Advance(); 14384 iterator.Advance();
14383 } 14385 }
14384 14386
14385 if (constant_pool()->length() > 0) { 14387 if (constant_pool()->length() > 0) {
(...skipping 4547 matching lines...) Expand 10 before | Expand all | Expand 10 after
18933 18935
18934 Object* data_obj = 18936 Object* data_obj =
18935 constructor->shared()->get_api_func_data()->access_check_info(); 18937 constructor->shared()->get_api_func_data()->access_check_info();
18936 if (data_obj->IsUndefined(isolate)) return nullptr; 18938 if (data_obj->IsUndefined(isolate)) return nullptr;
18937 18939
18938 return AccessCheckInfo::cast(data_obj); 18940 return AccessCheckInfo::cast(data_obj);
18939 } 18941 }
18940 18942
18941 } // namespace internal 18943 } // namespace internal
18942 } // namespace v8 18944 } // 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