| OLD | NEW |
| 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/isolate.h" | 5 #include "src/isolate.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 if (htracer() == NULL) set_htracer(new HTracer(id())); | 2455 if (htracer() == NULL) set_htracer(new HTracer(id())); |
| 2456 return htracer(); | 2456 return htracer(); |
| 2457 } | 2457 } |
| 2458 | 2458 |
| 2459 | 2459 |
| 2460 CodeTracer* Isolate::GetCodeTracer() { | 2460 CodeTracer* Isolate::GetCodeTracer() { |
| 2461 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); | 2461 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); |
| 2462 return code_tracer(); | 2462 return code_tracer(); |
| 2463 } | 2463 } |
| 2464 | 2464 |
| 2465 | 2465 Map* Isolate::get_initial_js_array_map(ElementsKind kind) { |
| 2466 Map* Isolate::get_initial_js_array_map(ElementsKind kind, Strength strength) { | |
| 2467 if (IsFastElementsKind(kind)) { | 2466 if (IsFastElementsKind(kind)) { |
| 2468 DisallowHeapAllocation no_gc; | 2467 DisallowHeapAllocation no_gc; |
| 2469 Object* const initial_js_array_map = context()->native_context()->get( | 2468 Object* const initial_js_array_map = |
| 2470 Context::ArrayMapIndex(kind, strength)); | 2469 context()->native_context()->get(Context::ArrayMapIndex(kind)); |
| 2471 if (!initial_js_array_map->IsUndefined()) { | 2470 if (!initial_js_array_map->IsUndefined()) { |
| 2472 return Map::cast(initial_js_array_map); | 2471 return Map::cast(initial_js_array_map); |
| 2473 } | 2472 } |
| 2474 } | 2473 } |
| 2475 return nullptr; | 2474 return nullptr; |
| 2476 } | 2475 } |
| 2477 | 2476 |
| 2478 | 2477 |
| 2479 bool Isolate::use_crankshaft() const { | 2478 bool Isolate::use_crankshaft() const { |
| 2480 return FLAG_crankshaft && | 2479 return FLAG_crankshaft && |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2972 // Then check whether this scope intercepts. | 2971 // Then check whether this scope intercepts. |
| 2973 if ((flag & intercept_mask_)) { | 2972 if ((flag & intercept_mask_)) { |
| 2974 intercepted_flags_ |= flag; | 2973 intercepted_flags_ |= flag; |
| 2975 return true; | 2974 return true; |
| 2976 } | 2975 } |
| 2977 return false; | 2976 return false; |
| 2978 } | 2977 } |
| 2979 | 2978 |
| 2980 } // namespace internal | 2979 } // namespace internal |
| 2981 } // namespace v8 | 2980 } // namespace v8 |
| OLD | NEW |