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

Side by Side Diff: src/runtime.cc

Issue 171039: RegExp tweaks (Closed)
Patch Set: Created 11 years, 4 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/execution.cc ('k') | test/mozilla/mozilla.status » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 3081 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 switch (instance_type) { 3092 switch (instance_type) {
3093 case ODDBALL_TYPE: 3093 case ODDBALL_TYPE:
3094 if (heap_obj->IsTrue() || heap_obj->IsFalse()) { 3094 if (heap_obj->IsTrue() || heap_obj->IsFalse()) {
3095 return Heap::boolean_symbol(); 3095 return Heap::boolean_symbol();
3096 } 3096 }
3097 if (heap_obj->IsNull()) { 3097 if (heap_obj->IsNull()) {
3098 return Heap::object_symbol(); 3098 return Heap::object_symbol();
3099 } 3099 }
3100 ASSERT(heap_obj->IsUndefined()); 3100 ASSERT(heap_obj->IsUndefined());
3101 return Heap::undefined_symbol(); 3101 return Heap::undefined_symbol();
3102 case JS_FUNCTION_TYPE: 3102 case JS_FUNCTION_TYPE: case JS_REGEXP_TYPE:
3103 return Heap::function_symbol(); 3103 return Heap::function_symbol();
3104 default: 3104 default:
3105 // For any kind of object not handled above, the spec rule for 3105 // For any kind of object not handled above, the spec rule for
3106 // host objects gives that it is okay to return "object" 3106 // host objects gives that it is okay to return "object"
3107 return Heap::object_symbol(); 3107 return Heap::object_symbol();
3108 } 3108 }
3109 } 3109 }
3110 3110
3111 3111
3112 static Object* Runtime_StringToNumber(Arguments args) { 3112 static Object* Runtime_StringToNumber(Arguments args) {
(...skipping 4517 matching lines...) Expand 10 before | Expand all | Expand 10 after
7630 } else { 7630 } else {
7631 // Handle last resort GC and make sure to allow future allocations 7631 // Handle last resort GC and make sure to allow future allocations
7632 // to grow the heap without causing GCs (if possible). 7632 // to grow the heap without causing GCs (if possible).
7633 Counters::gc_last_resort_from_js.Increment(); 7633 Counters::gc_last_resort_from_js.Increment();
7634 Heap::CollectAllGarbage(); 7634 Heap::CollectAllGarbage();
7635 } 7635 }
7636 } 7636 }
7637 7637
7638 7638
7639 } } // namespace v8::internal 7639 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698