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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2366 return htracer(); | 2366 return htracer(); |
2367 } | 2367 } |
2368 | 2368 |
2369 | 2369 |
2370 CodeTracer* Isolate::GetCodeTracer() { | 2370 CodeTracer* Isolate::GetCodeTracer() { |
2371 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); | 2371 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); |
2372 return code_tracer(); | 2372 return code_tracer(); |
2373 } | 2373 } |
2374 | 2374 |
2375 | 2375 |
2376 Map* Isolate::get_initial_js_array_map(ElementsKind kind, | 2376 Map* Isolate::get_initial_js_array_map(ElementsKind kind, Strength strength) { |
2377 ObjectStrength strength) { | |
2378 Context* native_context = context()->native_context(); | 2377 Context* native_context = context()->native_context(); |
2379 Object* maybe_map_array = strength ? native_context->js_array_strong_maps() | 2378 Object* maybe_map_array = is_strong(strength) |
2380 : native_context->js_array_maps(); | 2379 ? native_context->js_array_strong_maps() |
| 2380 : native_context->js_array_maps(); |
2381 if (!maybe_map_array->IsUndefined()) { | 2381 if (!maybe_map_array->IsUndefined()) { |
2382 Object* maybe_transitioned_map = | 2382 Object* maybe_transitioned_map = |
2383 FixedArray::cast(maybe_map_array)->get(kind); | 2383 FixedArray::cast(maybe_map_array)->get(kind); |
2384 if (!maybe_transitioned_map->IsUndefined()) { | 2384 if (!maybe_transitioned_map->IsUndefined()) { |
2385 return Map::cast(maybe_transitioned_map); | 2385 return Map::cast(maybe_transitioned_map); |
2386 } | 2386 } |
2387 } | 2387 } |
2388 return NULL; | 2388 return NULL; |
2389 } | 2389 } |
2390 | 2390 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 // Then check whether this scope intercepts. | 2793 // Then check whether this scope intercepts. |
2794 if ((flag & intercept_mask_)) { | 2794 if ((flag & intercept_mask_)) { |
2795 intercepted_flags_ |= flag; | 2795 intercepted_flags_ |= flag; |
2796 return true; | 2796 return true; |
2797 } | 2797 } |
2798 return false; | 2798 return false; |
2799 } | 2799 } |
2800 | 2800 |
2801 } // namespace internal | 2801 } // namespace internal |
2802 } // namespace v8 | 2802 } // namespace v8 |
OLD | NEW |