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

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: ports for x87, ppc 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
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, bool is_strong) {
2369 Context* native_context = context()->native_context(); 2369 Context* native_context = context()->native_context();
2370 Object* maybe_map_array = native_context->js_array_maps(); 2370 Object* maybe_map_array = is_strong ? native_context->js_array_strong_maps()
2371 : native_context->js_array_maps();
2371 if (!maybe_map_array->IsUndefined()) { 2372 if (!maybe_map_array->IsUndefined()) {
2372 Object* maybe_transitioned_map = 2373 Object* maybe_transitioned_map =
2373 FixedArray::cast(maybe_map_array)->get(kind); 2374 FixedArray::cast(maybe_map_array)->get(kind);
2374 if (!maybe_transitioned_map->IsUndefined()) { 2375 if (!maybe_transitioned_map->IsUndefined()) {
2375 return Map::cast(maybe_transitioned_map); 2376 return Map::cast(maybe_transitioned_map);
2376 } 2377 }
2377 } 2378 }
2378 return NULL; 2379 return NULL;
2379 } 2380 }
2380 2381
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 if (prev_ && prev_->Intercept(flag)) return true; 2783 if (prev_ && prev_->Intercept(flag)) return true;
2783 // Then check whether this scope intercepts. 2784 // Then check whether this scope intercepts.
2784 if ((flag & intercept_mask_)) { 2785 if ((flag & intercept_mask_)) {
2785 intercepted_flags_ |= flag; 2786 intercepted_flags_ |= flag;
2786 return true; 2787 return true;
2787 } 2788 }
2788 return false; 2789 return false;
2789 } 2790 }
2790 2791
2791 } } // namespace v8::internal 2792 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698