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

Side by Side Diff: src/runtime.cc

Issue 8341014: Age the number string cache so it does not keep strings Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 13318 matching lines...) Expand 10 before | Expand all | Expand 10 after
13329 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION 13329 #undef ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION
13330 13330
13331 13331
13332 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { 13332 RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) {
13333 ASSERT(args.length() == 2); 13333 ASSERT(args.length() == 2);
13334 CONVERT_CHECKED(JSObject, obj1, args[0]); 13334 CONVERT_CHECKED(JSObject, obj1, args[0]);
13335 CONVERT_CHECKED(JSObject, obj2, args[1]); 13335 CONVERT_CHECKED(JSObject, obj2, args[1]);
13336 return isolate->heap()->ToBoolean(obj1->map() == obj2->map()); 13336 return isolate->heap()->ToBoolean(obj1->map() == obj2->map());
13337 } 13337 }
13338 13338
13339 RUNTIME_FUNCTION(MaybeObject*, Runtime_AreIdenticalObject) {
13340 ASSERT(args.length() == 2);
13341 Handle<Object> obj1(args[0]);
13342 Handle<Object> obj2(args[1]);
13343 return isolate->heap()->ToBoolean(*obj1 == *obj2);
13344 }
13345
13339 // ---------------------------------------------------------------------------- 13346 // ----------------------------------------------------------------------------
13340 // Implementation of Runtime 13347 // Implementation of Runtime
13341 13348
13342 #define F(name, number_of_args, result_size) \ 13349 #define F(name, number_of_args, result_size) \
13343 { Runtime::k##name, Runtime::RUNTIME, #name, \ 13350 { Runtime::k##name, Runtime::RUNTIME, #name, \
13344 FUNCTION_ADDR(Runtime_##name), number_of_args, result_size }, 13351 FUNCTION_ADDR(Runtime_##name), number_of_args, result_size },
13345 13352
13346 13353
13347 #define I(name, number_of_args, result_size) \ 13354 #define I(name, number_of_args, result_size) \
13348 { Runtime::kInline##name, Runtime::INLINE, \ 13355 { Runtime::kInline##name, Runtime::INLINE, \
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
13412 } else { 13419 } else {
13413 // Handle last resort GC and make sure to allow future allocations 13420 // Handle last resort GC and make sure to allow future allocations
13414 // to grow the heap without causing GCs (if possible). 13421 // to grow the heap without causing GCs (if possible).
13415 isolate->counters()->gc_last_resort_from_js()->Increment(); 13422 isolate->counters()->gc_last_resort_from_js()->Increment();
13416 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags); 13423 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags);
13417 } 13424 }
13418 } 13425 }
13419 13426
13420 13427
13421 } } // namespace v8::internal 13428 } } // namespace v8::internal
OLDNEW
« src/heap.cc ('K') | « src/runtime.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698