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

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

Issue 2462613002: [not for landing] Debugging gpu failures
Patch Set: more checks Created 4 years, 1 month 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/heap/spaces-inl.h ('k') | no next file » | 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 <memory> 7 #include <memory>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 RUNTIME_FUNCTION(Runtime_AllocateInTargetSpace) { 323 RUNTIME_FUNCTION(Runtime_AllocateInTargetSpace) {
324 HandleScope scope(isolate); 324 HandleScope scope(isolate);
325 DCHECK(args.length() == 2); 325 DCHECK(args.length() == 2);
326 CONVERT_SMI_ARG_CHECKED(size, 0); 326 CONVERT_SMI_ARG_CHECKED(size, 0);
327 CONVERT_SMI_ARG_CHECKED(flags, 1); 327 CONVERT_SMI_ARG_CHECKED(flags, 1);
328 CHECK(IsAligned(size, kPointerSize)); 328 CHECK(IsAligned(size, kPointerSize));
329 CHECK(size > 0); 329 CHECK(size > 0);
330 CHECK(size <= kMaxRegularHeapObjectSize); 330 CHECK(size <= kMaxRegularHeapObjectSize);
331 bool double_align = AllocateDoubleAlignFlag::decode(flags); 331 bool double_align = AllocateDoubleAlignFlag::decode(flags);
332 AllocationSpace space = AllocateTargetSpace::decode(flags); 332 AllocationSpace space = AllocateTargetSpace::decode(flags);
333 return *isolate->factory()->NewFillerObject(size, double_align, space); 333 HeapObject* result =
334 *isolate->factory()->NewFillerObject(size, double_align, space);
335 if (space == OLD_SPACE) {
336 DCHECK(*(isolate->heap()->OldSpaceAllocationLimitAddress()) != nullptr);
337 DCHECK(*(isolate->heap()->OldSpaceAllocationTopAddress()) != nullptr);
338 }
339 return result;
334 } 340 }
335 341
336 RUNTIME_FUNCTION(Runtime_AllocateSeqOneByteString) { 342 RUNTIME_FUNCTION(Runtime_AllocateSeqOneByteString) {
337 HandleScope scope(isolate); 343 HandleScope scope(isolate);
338 DCHECK_EQ(1, args.length()); 344 DCHECK_EQ(1, args.length());
339 CONVERT_SMI_ARG_CHECKED(length, 0); 345 CONVERT_SMI_ARG_CHECKED(length, 0);
340 Handle<SeqOneByteString> result; 346 Handle<SeqOneByteString> result;
341 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 347 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
342 isolate, result, isolate->factory()->NewRawOneByteString(length)); 348 isolate, result, isolate->factory()->NewRawOneByteString(length));
343 return *result; 349 return *result;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 539
534 RUNTIME_FUNCTION(Runtime_Typeof) { 540 RUNTIME_FUNCTION(Runtime_Typeof) {
535 HandleScope scope(isolate); 541 HandleScope scope(isolate);
536 DCHECK_EQ(1, args.length()); 542 DCHECK_EQ(1, args.length());
537 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 543 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
538 return *Object::TypeOf(isolate, object); 544 return *Object::TypeOf(isolate, object);
539 } 545 }
540 546
541 } // namespace internal 547 } // namespace internal
542 } // namespace v8 548 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698