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

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

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 years 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/platform.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 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 3670 matching lines...) Expand 10 before | Expand all | Expand 10 after
3681 Smi* SharedFunctionInfo::deopt_counter() { 3681 Smi* SharedFunctionInfo::deopt_counter() {
3682 return reinterpret_cast<Smi*>(READ_FIELD(this, kDeoptCounterOffset)); 3682 return reinterpret_cast<Smi*>(READ_FIELD(this, kDeoptCounterOffset));
3683 } 3683 }
3684 3684
3685 3685
3686 void SharedFunctionInfo::set_deopt_counter(Smi* value) { 3686 void SharedFunctionInfo::set_deopt_counter(Smi* value) {
3687 WRITE_FIELD(this, kDeoptCounterOffset, value); 3687 WRITE_FIELD(this, kDeoptCounterOffset, value);
3688 } 3688 }
3689 3689
3690 3690
3691 SMI_ACCESSORS(SharedFunctionInfo, profiler_ticks, kProfilerTicksOffset)
3692
3693
3691 bool SharedFunctionInfo::is_compiled() { 3694 bool SharedFunctionInfo::is_compiled() {
3692 return code() != 3695 return code() !=
3693 Isolate::Current()->builtins()->builtin(Builtins::kLazyCompile); 3696 Isolate::Current()->builtins()->builtin(Builtins::kLazyCompile);
3694 } 3697 }
3695 3698
3696 3699
3697 bool SharedFunctionInfo::IsApiFunction() { 3700 bool SharedFunctionInfo::IsApiFunction() {
3698 return function_data()->IsFunctionTemplateInfo(); 3701 return function_data()->IsFunctionTemplateInfo();
3699 } 3702 }
3700 3703
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
4719 #undef WRITE_INT_FIELD 4722 #undef WRITE_INT_FIELD
4720 #undef READ_SHORT_FIELD 4723 #undef READ_SHORT_FIELD
4721 #undef WRITE_SHORT_FIELD 4724 #undef WRITE_SHORT_FIELD
4722 #undef READ_BYTE_FIELD 4725 #undef READ_BYTE_FIELD
4723 #undef WRITE_BYTE_FIELD 4726 #undef WRITE_BYTE_FIELD
4724 4727
4725 4728
4726 } } // namespace v8::internal 4729 } } // namespace v8::internal
4727 4730
4728 #endif // V8_OBJECTS_INL_H_ 4731 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698