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

Side by Side Diff: src/code-stub-assembler.cc

Issue 2663633002: [csa] fix CallRuntime() call in CSA::Print(Node* tagged_value) (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/code-stub-assembler.h" 4 #include "src/code-stub-assembler.h"
5 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/frames-inl.h" 6 #include "src/frames-inl.h"
7 #include "src/frames.h" 7 #include "src/frames.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 8371 matching lines...) Expand 10 before | Expand all | Expand 10 after
8382 void CodeStubAssembler::Print(const char* prefix, Node* tagged_value) { 8382 void CodeStubAssembler::Print(const char* prefix, Node* tagged_value) {
8383 #ifdef DEBUG 8383 #ifdef DEBUG
8384 if (prefix != nullptr) { 8384 if (prefix != nullptr) {
8385 std::string formatted(prefix); 8385 std::string formatted(prefix);
8386 formatted += ": "; 8386 formatted += ": ";
8387 Handle<String> string = isolate()->factory()->NewStringFromAsciiChecked( 8387 Handle<String> string = isolate()->factory()->NewStringFromAsciiChecked(
8388 formatted.c_str(), TENURED); 8388 formatted.c_str(), TENURED);
8389 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), 8389 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
8390 HeapConstant(string)); 8390 HeapConstant(string));
8391 } 8391 }
8392 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), tagged_value); 8392 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
8393 #endif 8393 #endif
8394 } 8394 }
8395 8395
8396 } // namespace internal 8396 } // namespace internal
8397 } // namespace v8 8397 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698