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

Side by Side Diff: src/runtime/runtime-literals.cc

Issue 2038013002: [runtime] Remove RUNTIME_ASSERT_HANDLIFIED. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/runtime/runtime-debug.cc ('k') | src/runtime/runtime-utils.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 site = Handle<AllocationSite>::cast(literal_site); 293 site = Handle<AllocationSite>::cast(literal_site);
294 } 294 }
295 295
296 return site; 296 return site;
297 } 297 }
298 298
299 299
300 static MaybeHandle<JSObject> CreateArrayLiteralImpl( 300 static MaybeHandle<JSObject> CreateArrayLiteralImpl(
301 Isolate* isolate, Handle<LiteralsArray> literals, int literals_index, 301 Isolate* isolate, Handle<LiteralsArray> literals, int literals_index,
302 Handle<FixedArray> elements, int flags) { 302 Handle<FixedArray> elements, int flags) {
303 RUNTIME_ASSERT_HANDLIFIED( 303 CHECK(literals_index >= 0 && literals_index < literals->literals_count());
304 literals_index >= 0 && literals_index < literals->literals_count(),
305 JSObject);
306 Handle<AllocationSite> site; 304 Handle<AllocationSite> site;
307 ASSIGN_RETURN_ON_EXCEPTION( 305 ASSIGN_RETURN_ON_EXCEPTION(
308 isolate, site, 306 isolate, site,
309 GetLiteralAllocationSite(isolate, literals, literals_index, elements), 307 GetLiteralAllocationSite(isolate, literals, literals_index, elements),
310 JSObject); 308 JSObject);
311 309
312 bool enable_mementos = (flags & ArrayLiteral::kDisableMementos) == 0; 310 bool enable_mementos = (flags & ArrayLiteral::kDisableMementos) == 0;
313 Handle<JSObject> boilerplate(JSObject::cast(site->transition_info())); 311 Handle<JSObject> boilerplate(JSObject::cast(site->transition_info()));
314 AllocationSiteUsageContext usage_context(isolate, site, enable_mementos); 312 AllocationSiteUsageContext usage_context(isolate, site, enable_mementos);
315 usage_context.EnterNewScope(); 313 usage_context.EnterNewScope();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 345
348 Handle<LiteralsArray> literals(closure->literals(), isolate); 346 Handle<LiteralsArray> literals(closure->literals(), isolate);
349 RETURN_RESULT_OR_FAILURE( 347 RETURN_RESULT_OR_FAILURE(
350 isolate, 348 isolate,
351 CreateArrayLiteralImpl(isolate, literals, literals_index, elements, 349 CreateArrayLiteralImpl(isolate, literals, literals_index, elements,
352 ArrayLiteral::kShallowElements)); 350 ArrayLiteral::kShallowElements));
353 } 351 }
354 352
355 } // namespace internal 353 } // namespace internal
356 } // namespace v8 354 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/runtime/runtime-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698