| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
| 9 #include "src/base/ieee754.h" | 9 #include "src/base/ieee754.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2210 Context::URI_ERROR_FUNCTION_INDEX); | 2210 Context::URI_ERROR_FUNCTION_INDEX); |
| 2211 InstallMakeError(isolate, isolate->builtins()->MakeURIError(), | 2211 InstallMakeError(isolate, isolate->builtins()->MakeURIError(), |
| 2212 Context::MAKE_URI_ERROR_INDEX); | 2212 Context::MAKE_URI_ERROR_INDEX); |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 { // -- C o m p i l e E r r o r | 2215 { // -- C o m p i l e E r r o r |
| 2216 Handle<JSObject> dummy = factory->NewJSObject(isolate->object_function()); | 2216 Handle<JSObject> dummy = factory->NewJSObject(isolate->object_function()); |
| 2217 InstallError(isolate, dummy, factory->CompileError_string(), | 2217 InstallError(isolate, dummy, factory->CompileError_string(), |
| 2218 Context::WASM_COMPILE_ERROR_FUNCTION_INDEX); | 2218 Context::WASM_COMPILE_ERROR_FUNCTION_INDEX); |
| 2219 | 2219 |
| 2220 // -- L i n k E r r o r |
| 2221 InstallError(isolate, dummy, factory->LinkError_string(), |
| 2222 Context::WASM_LINK_ERROR_FUNCTION_INDEX); |
| 2223 |
| 2220 // -- R u n t i m e E r r o r | 2224 // -- R u n t i m e E r r o r |
| 2221 InstallError(isolate, dummy, factory->RuntimeError_string(), | 2225 InstallError(isolate, dummy, factory->RuntimeError_string(), |
| 2222 Context::WASM_RUNTIME_ERROR_FUNCTION_INDEX); | 2226 Context::WASM_RUNTIME_ERROR_FUNCTION_INDEX); |
| 2223 } | 2227 } |
| 2224 | 2228 |
| 2225 // Initialize the embedder data slot. | 2229 // Initialize the embedder data slot. |
| 2226 Handle<FixedArray> embedder_data = factory->NewFixedArray(3); | 2230 Handle<FixedArray> embedder_data = factory->NewFixedArray(3); |
| 2227 native_context()->set_embedder_data(*embedder_data); | 2231 native_context()->set_embedder_data(*embedder_data); |
| 2228 | 2232 |
| 2229 { // -- J S O N | 2233 { // -- J S O N |
| (...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4684 } | 4688 } |
| 4685 | 4689 |
| 4686 | 4690 |
| 4687 // Called when the top-level V8 mutex is destroyed. | 4691 // Called when the top-level V8 mutex is destroyed. |
| 4688 void Bootstrapper::FreeThreadResources() { | 4692 void Bootstrapper::FreeThreadResources() { |
| 4689 DCHECK(!IsActive()); | 4693 DCHECK(!IsActive()); |
| 4690 } | 4694 } |
| 4691 | 4695 |
| 4692 } // namespace internal | 4696 } // namespace internal |
| 4693 } // namespace v8 | 4697 } // namespace v8 |
| OLD | NEW |