| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |