OLD | NEW |
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/wasm/wasm-result.h" | 5 #include "src/wasm/wasm-result.h" |
6 | 6 |
7 #include "src/factory.h" | 7 #include "src/factory.h" |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate-inl.h" |
10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! | |
11 #include "src/objects.h" | 10 #include "src/objects.h" |
12 | 11 |
13 #include "src/base/platform/platform.h" | 12 #include "src/base/platform/platform.h" |
14 | 13 |
15 namespace v8 { | 14 namespace v8 { |
16 namespace internal { | 15 namespace internal { |
17 namespace wasm { | 16 namespace wasm { |
18 | 17 |
19 std::ostream& operator<<(std::ostream& os, const ErrorCode& error_code) { | 18 std::ostream& operator<<(std::ostream& os, const ErrorCode& error_code) { |
20 switch (error_code) { | 19 switch (error_code) { |
(...skipping 23 matching lines...) Expand all Loading... |
44 str << context_ << ": "; | 43 str << context_ << ": "; |
45 } | 44 } |
46 str << buffer; | 45 str << buffer; |
47 | 46 |
48 isolate_->ScheduleThrow( | 47 isolate_->ScheduleThrow( |
49 *isolate_->factory()->NewStringFromAsciiChecked(str.str().c_str())); | 48 *isolate_->factory()->NewStringFromAsciiChecked(str.str().c_str())); |
50 } | 49 } |
51 } // namespace wasm | 50 } // namespace wasm |
52 } // namespace internal | 51 } // namespace internal |
53 } // namespace v8 | 52 } // namespace v8 |
OLD | NEW |