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

Side by Side Diff: src/objects-printer.cc

Issue 1448933002: Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/objects-debug.cc ('k') | src/regexp/jsregexp.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) 88 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY)
89 #undef PRINT_FIXED_TYPED_ARRAY 89 #undef PRINT_FIXED_TYPED_ARRAY
90 90
91 case FILLER_TYPE: 91 case FILLER_TYPE:
92 os << "filler"; 92 os << "filler";
93 break; 93 break;
94 case JS_OBJECT_TYPE: // fall through 94 case JS_OBJECT_TYPE: // fall through
95 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 95 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
96 case JS_ARRAY_TYPE: 96 case JS_ARRAY_TYPE:
97 case JS_GENERATOR_OBJECT_TYPE: 97 case JS_GENERATOR_OBJECT_TYPE:
98 case JS_PROMISE_TYPE:
98 JSObject::cast(this)->JSObjectPrint(os); 99 JSObject::cast(this)->JSObjectPrint(os);
99 break; 100 break;
100 case JS_REGEXP_TYPE: 101 case JS_REGEXP_TYPE:
101 JSRegExp::cast(this)->JSRegExpPrint(os); 102 JSRegExp::cast(this)->JSRegExpPrint(os);
102 break; 103 break;
103 case ODDBALL_TYPE: 104 case ODDBALL_TYPE:
104 Oddball::cast(this)->to_string()->Print(os); 105 Oddball::cast(this)->to_string()->Print(os);
105 break; 106 break;
106 case JS_MODULE_TYPE: 107 case JS_MODULE_TYPE:
107 JSModule::cast(this)->JSModulePrint(os); 108 JSModule::cast(this)->JSModulePrint(os);
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1331 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1331 Object* transitions = map()->raw_transitions(); 1332 Object* transitions = map()->raw_transitions();
1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1333 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1333 if (num_transitions == 0) return; 1334 if (num_transitions == 0) return;
1334 os << "\n - transitions"; 1335 os << "\n - transitions";
1335 TransitionArray::PrintTransitions(os, transitions, false); 1336 TransitionArray::PrintTransitions(os, transitions, false);
1336 } 1337 }
1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1338 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1338 } // namespace internal 1339 } // namespace internal
1339 } // namespace v8 1340 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/regexp/jsregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698