| 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 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 return htracer(); | 2369 return htracer(); |
| 2370 } | 2370 } |
| 2371 | 2371 |
| 2372 | 2372 |
| 2373 CodeTracer* Isolate::GetCodeTracer() { | 2373 CodeTracer* Isolate::GetCodeTracer() { |
| 2374 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); | 2374 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); |
| 2375 return code_tracer(); | 2375 return code_tracer(); |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 | 2378 |
| 2379 Map* Isolate::get_initial_js_array_map(ElementsKind kind) { | 2379 Map* Isolate::get_initial_js_array_map(ElementsKind kind, bool is_strong) { |
| 2380 Context* native_context = context()->native_context(); | 2380 Context* native_context = context()->native_context(); |
| 2381 Object* maybe_map_array = native_context->js_array_maps(); | 2381 Object* maybe_map_array = is_strong |
| 2382 ? native_context->js_array_strong_maps() |
| 2383 : native_context->js_array_maps(); |
| 2382 if (!maybe_map_array->IsUndefined()) { | 2384 if (!maybe_map_array->IsUndefined()) { |
| 2383 Object* maybe_transitioned_map = | 2385 Object* maybe_transitioned_map = |
| 2384 FixedArray::cast(maybe_map_array)->get(kind); | 2386 FixedArray::cast(maybe_map_array)->get(kind); |
| 2385 if (!maybe_transitioned_map->IsUndefined()) { | 2387 if (!maybe_transitioned_map->IsUndefined()) { |
| 2386 return Map::cast(maybe_transitioned_map); | 2388 return Map::cast(maybe_transitioned_map); |
| 2387 } | 2389 } |
| 2388 } | 2390 } |
| 2389 return NULL; | 2391 return NULL; |
| 2390 } | 2392 } |
| 2391 | 2393 |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 if (prev_ && prev_->Intercept(flag)) return true; | 2787 if (prev_ && prev_->Intercept(flag)) return true; |
| 2786 // Then check whether this scope intercepts. | 2788 // Then check whether this scope intercepts. |
| 2787 if ((flag & intercept_mask_)) { | 2789 if ((flag & intercept_mask_)) { |
| 2788 intercepted_flags_ |= flag; | 2790 intercepted_flags_ |= flag; |
| 2789 return true; | 2791 return true; |
| 2790 } | 2792 } |
| 2791 return false; | 2793 return false; |
| 2792 } | 2794 } |
| 2793 | 2795 |
| 2794 } } // namespace v8::internal | 2796 } } // namespace v8::internal |
| OLD | NEW |