Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: src/isolate.cc

Issue 1152093003: [strong] create strong array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/isolate.h ('k') | src/json-parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 return htracer(); 2358 return htracer();
2359 } 2359 }
2360 2360
2361 2361
2362 CodeTracer* Isolate::GetCodeTracer() { 2362 CodeTracer* Isolate::GetCodeTracer() {
2363 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); 2363 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id()));
2364 return code_tracer(); 2364 return code_tracer();
2365 } 2365 }
2366 2366
2367 2367
2368 Map* Isolate::get_initial_js_array_map(ElementsKind kind) { 2368 Map* Isolate::get_initial_js_array_map(ElementsKind kind,
2369 ObjectStrength strength) {
2369 Context* native_context = context()->native_context(); 2370 Context* native_context = context()->native_context();
2370 Object* maybe_map_array = native_context->js_array_maps(); 2371 Object* maybe_map_array = strength ? native_context->js_array_strong_maps()
2372 : native_context->js_array_maps();
2371 if (!maybe_map_array->IsUndefined()) { 2373 if (!maybe_map_array->IsUndefined()) {
2372 Object* maybe_transitioned_map = 2374 Object* maybe_transitioned_map =
2373 FixedArray::cast(maybe_map_array)->get(kind); 2375 FixedArray::cast(maybe_map_array)->get(kind);
2374 if (!maybe_transitioned_map->IsUndefined()) { 2376 if (!maybe_transitioned_map->IsUndefined()) {
2375 return Map::cast(maybe_transitioned_map); 2377 return Map::cast(maybe_transitioned_map);
2376 } 2378 }
2377 } 2379 }
2378 return NULL; 2380 return NULL;
2379 } 2381 }
2380 2382
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 if (prev_ && prev_->Intercept(flag)) return true; 2784 if (prev_ && prev_->Intercept(flag)) return true;
2783 // Then check whether this scope intercepts. 2785 // Then check whether this scope intercepts.
2784 if ((flag & intercept_mask_)) { 2786 if ((flag & intercept_mask_)) {
2785 intercepted_flags_ |= flag; 2787 intercepted_flags_ |= flag;
2786 return true; 2788 return true;
2787 } 2789 }
2788 return false; 2790 return false;
2789 } 2791 }
2790 2792
2791 } } // namespace v8::internal 2793 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698