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

Side by Side Diff: src/objects-inl.h

Issue 10807024: Optimize functions on a second thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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.cc ('k') | src/optimizing-compiler-thread.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 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 4231 matching lines...) Expand 10 before | Expand all | Expand 10 after
4242 bool JSFunction::IsOptimizable() { 4242 bool JSFunction::IsOptimizable() {
4243 return code()->kind() == Code::FUNCTION && code()->optimizable(); 4243 return code()->kind() == Code::FUNCTION && code()->optimizable();
4244 } 4244 }
4245 4245
4246 4246
4247 bool JSFunction::IsMarkedForLazyRecompilation() { 4247 bool JSFunction::IsMarkedForLazyRecompilation() {
4248 return code() == GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile); 4248 return code() == GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile);
4249 } 4249 }
4250 4250
4251 4251
4252 bool JSFunction::IsMarkedForParallelRecompilation() {
4253 return code() ==
4254 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile);
4255 }
4256
4257
4258 bool JSFunction::IsInRecompileQueue() {
4259 return code() == GetIsolate()->builtins()->builtin(
4260 Builtins::kInRecompileQueue);
4261 }
4262
4263
4252 Code* JSFunction::code() { 4264 Code* JSFunction::code() {
4253 return Code::cast(unchecked_code()); 4265 return Code::cast(unchecked_code());
4254 } 4266 }
4255 4267
4256 4268
4257 Code* JSFunction::unchecked_code() { 4269 Code* JSFunction::unchecked_code() {
4258 return reinterpret_cast<Code*>( 4270 return reinterpret_cast<Code*>(
4259 Code::GetObjectFromEntryAddress(FIELD_ADDR(this, kCodeEntryOffset))); 4271 Code::GetObjectFromEntryAddress(FIELD_ADDR(this, kCodeEntryOffset)));
4260 } 4272 }
4261 4273
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
5369 #undef WRITE_UINT32_FIELD 5381 #undef WRITE_UINT32_FIELD
5370 #undef READ_SHORT_FIELD 5382 #undef READ_SHORT_FIELD
5371 #undef WRITE_SHORT_FIELD 5383 #undef WRITE_SHORT_FIELD
5372 #undef READ_BYTE_FIELD 5384 #undef READ_BYTE_FIELD
5373 #undef WRITE_BYTE_FIELD 5385 #undef WRITE_BYTE_FIELD
5374 5386
5375 5387
5376 } } // namespace v8::internal 5388 } } // namespace v8::internal
5377 5389
5378 #endif // V8_OBJECTS_INL_H_ 5390 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/optimizing-compiler-thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698