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

Side by Side Diff: src/runtime.cc

Issue 137403009: Adding a type vector to replace type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed feedback. Created 6 years, 10 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 | « src/parser.cc ('k') | src/scopes.cc » ('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 8457 matching lines...) Expand 10 before | Expand all | Expand 10 after
8468 } 8468 }
8469 8469
8470 8470
8471 RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) { 8471 RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) {
8472 HandleScope scope(isolate); 8472 HandleScope scope(isolate);
8473 ASSERT(args.length() == 1); 8473 ASSERT(args.length() == 1);
8474 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 8474 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
8475 Code* unoptimized = function->shared()->code(); 8475 Code* unoptimized = function->shared()->code();
8476 if (unoptimized->kind() == Code::FUNCTION) { 8476 if (unoptimized->kind() == Code::FUNCTION) {
8477 unoptimized->ClearInlineCaches(); 8477 unoptimized->ClearInlineCaches();
8478 unoptimized->ClearTypeFeedbackCells(isolate->heap()); 8478 unoptimized->ClearTypeFeedbackInfo(isolate->heap());
8479 } 8479 }
8480 return isolate->heap()->undefined_value(); 8480 return isolate->heap()->undefined_value();
8481 } 8481 }
8482 8482
8483 8483
8484 RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) { 8484 RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) {
8485 SealHandleScope shs(isolate); 8485 SealHandleScope shs(isolate);
8486 #if defined(USE_SIMULATOR) 8486 #if defined(USE_SIMULATOR)
8487 return isolate->heap()->true_value(); 8487 return isolate->heap()->true_value();
8488 #else 8488 #else
(...skipping 6376 matching lines...) Expand 10 before | Expand all | Expand 10 after
14865 // Handle last resort GC and make sure to allow future allocations 14865 // Handle last resort GC and make sure to allow future allocations
14866 // to grow the heap without causing GCs (if possible). 14866 // to grow the heap without causing GCs (if possible).
14867 isolate->counters()->gc_last_resort_from_js()->Increment(); 14867 isolate->counters()->gc_last_resort_from_js()->Increment();
14868 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14868 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14869 "Runtime::PerformGC"); 14869 "Runtime::PerformGC");
14870 } 14870 }
14871 } 14871 }
14872 14872
14873 14873
14874 } } // namespace v8::internal 14874 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698