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

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: Smarter vector allocation and refactoring. Created 6 years, 11 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 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 8478 matching lines...) Expand 10 before | Expand all | Expand 10 after
8489 } 8489 }
8490 8490
8491 8491
8492 RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) { 8492 RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) {
8493 HandleScope scope(isolate); 8493 HandleScope scope(isolate);
8494 ASSERT(args.length() == 1); 8494 ASSERT(args.length() == 1);
8495 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 8495 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
8496 Code* unoptimized = function->shared()->code(); 8496 Code* unoptimized = function->shared()->code();
8497 if (unoptimized->kind() == Code::FUNCTION) { 8497 if (unoptimized->kind() == Code::FUNCTION) {
8498 unoptimized->ClearInlineCaches(); 8498 unoptimized->ClearInlineCaches();
8499 unoptimized->ClearTypeFeedbackCells(isolate->heap()); 8499 unoptimized->ClearTypeFeedbackInfo(isolate->heap());
8500 } 8500 }
8501 return isolate->heap()->undefined_value(); 8501 return isolate->heap()->undefined_value();
8502 } 8502 }
8503 8503
8504 8504
8505 RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) { 8505 RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) {
8506 SealHandleScope shs(isolate); 8506 SealHandleScope shs(isolate);
8507 #if defined(USE_SIMULATOR) 8507 #if defined(USE_SIMULATOR)
8508 return isolate->heap()->true_value(); 8508 return isolate->heap()->true_value();
8509 #else 8509 #else
(...skipping 6386 matching lines...) Expand 10 before | Expand all | Expand 10 after
14896 // Handle last resort GC and make sure to allow future allocations 14896 // Handle last resort GC and make sure to allow future allocations
14897 // to grow the heap without causing GCs (if possible). 14897 // to grow the heap without causing GCs (if possible).
14898 isolate->counters()->gc_last_resort_from_js()->Increment(); 14898 isolate->counters()->gc_last_resort_from_js()->Increment();
14899 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14899 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14900 "Runtime::PerformGC"); 14900 "Runtime::PerformGC");
14901 } 14901 }
14902 } 14902 }
14903 14903
14904 14904
14905 } } // namespace v8::internal 14905 } } // namespace v8::internal
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/objects-visiting-inl.h ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698