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

Side by Side Diff: src/runtime.cc

Issue 182003004: Remove outdated assertion scope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-349870.js » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2533 array->set_length(Smi::FromInt(elements_count)); 2533 array->set_length(Smi::FromInt(elements_count));
2534 // Write in-object properties after the length of the array. 2534 // Write in-object properties after the length of the array.
2535 array->InObjectPropertyAtPut(JSRegExpResult::kIndexIndex, args[1]); 2535 array->InObjectPropertyAtPut(JSRegExpResult::kIndexIndex, args[1]);
2536 array->InObjectPropertyAtPut(JSRegExpResult::kInputIndex, args[2]); 2536 array->InObjectPropertyAtPut(JSRegExpResult::kInputIndex, args[2]);
2537 return array; 2537 return array;
2538 } 2538 }
2539 2539
2540 2540
2541 RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpInitializeObject) { 2541 RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpInitializeObject) {
2542 HandleScope scope(isolate); 2542 HandleScope scope(isolate);
2543 DisallowHeapAllocation no_allocation;
2544 ASSERT(args.length() == 5); 2543 ASSERT(args.length() == 5);
2545 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0); 2544 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
2546 CONVERT_ARG_HANDLE_CHECKED(String, source, 1); 2545 CONVERT_ARG_HANDLE_CHECKED(String, source, 1);
2547 // If source is the empty string we set it to "(?:)" instead as 2546 // If source is the empty string we set it to "(?:)" instead as
2548 // suggested by ECMA-262, 5th, section 15.10.4.1. 2547 // suggested by ECMA-262, 5th, section 15.10.4.1.
2549 if (source->length() == 0) source = isolate->factory()->query_colon_string(); 2548 if (source->length() == 0) source = isolate->factory()->query_colon_string();
2550 2549
2551 CONVERT_ARG_HANDLE_CHECKED(Object, global, 2); 2550 CONVERT_ARG_HANDLE_CHECKED(Object, global, 2);
2552 if (!global->IsTrue()) global = isolate->factory()->false_value(); 2551 if (!global->IsTrue()) global = isolate->factory()->false_value();
2553 2552
(...skipping 12435 matching lines...) Expand 10 before | Expand all | Expand 10 after
14989 // Handle last resort GC and make sure to allow future allocations 14988 // Handle last resort GC and make sure to allow future allocations
14990 // to grow the heap without causing GCs (if possible). 14989 // to grow the heap without causing GCs (if possible).
14991 isolate->counters()->gc_last_resort_from_js()->Increment(); 14990 isolate->counters()->gc_last_resort_from_js()->Increment();
14992 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14991 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14993 "Runtime::PerformGC"); 14992 "Runtime::PerformGC");
14994 } 14993 }
14995 } 14994 }
14996 14995
14997 14996
14998 } } // namespace v8::internal 14997 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-349870.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698