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/objects.cc

Issue 17061004: Deprecate old code aging mechanism. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment by Daniel Clifford. Created 7 years, 6 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/objects.h ('k') | src/objects-inl.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 9383 matching lines...) Expand 10 before | Expand all | Expand 10 after
9394 ClearOptimizedCodeMap(); 9394 ClearOptimizedCodeMap();
9395 } 9395 }
9396 } 9396 }
9397 9397
9398 9398
9399 bool JSFunction::CompileLazy(Handle<JSFunction> function, 9399 bool JSFunction::CompileLazy(Handle<JSFunction> function,
9400 ClearExceptionFlag flag) { 9400 ClearExceptionFlag flag) {
9401 bool result = true; 9401 bool result = true;
9402 if (function->shared()->is_compiled()) { 9402 if (function->shared()->is_compiled()) {
9403 function->ReplaceCode(function->shared()->code()); 9403 function->ReplaceCode(function->shared()->code());
9404 function->shared()->set_code_age(0);
9405 } else { 9404 } else {
9406 ASSERT(function->shared()->allows_lazy_compilation()); 9405 ASSERT(function->shared()->allows_lazy_compilation());
9407 CompilationInfoWithZone info(function); 9406 CompilationInfoWithZone info(function);
9408 result = CompileLazyHelper(&info, flag); 9407 result = CompileLazyHelper(&info, flag);
9409 ASSERT(!result || function->is_compiled()); 9408 ASSERT(!result || function->is_compiled());
9410 } 9409 }
9411 return result; 9410 return result;
9412 } 9411 }
9413 9412
9414 9413
(...skipping 6400 matching lines...) Expand 10 before | Expand all | Expand 10 after
15815 return static_cast<Type*>(type_raw()); 15814 return static_cast<Type*>(type_raw());
15816 } 15815 }
15817 15816
15818 15817
15819 void JSGlobalPropertyCell::set_type(Type* type, WriteBarrierMode ignored) { 15818 void JSGlobalPropertyCell::set_type(Type* type, WriteBarrierMode ignored) {
15820 set_type_raw(type, ignored); 15819 set_type_raw(type, ignored);
15821 } 15820 }
15822 15821
15823 15822
15824 } } // namespace v8::internal 15823 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698