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

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: fix function self-optimization; address first comment 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
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 3858 matching lines...) Expand 10 before | Expand all | Expand 10 after
3869 bool JSFunction::should_have_prototype() { 3869 bool JSFunction::should_have_prototype() {
3870 return map()->function_with_prototype(); 3870 return map()->function_with_prototype();
3871 } 3871 }
3872 3872
3873 3873
3874 bool JSFunction::is_compiled() { 3874 bool JSFunction::is_compiled() {
3875 return code() != GetIsolate()->builtins()->builtin(Builtins::kLazyCompile); 3875 return code() != GetIsolate()->builtins()->builtin(Builtins::kLazyCompile);
3876 } 3876 }
3877 3877
3878 3878
3879 SMI_ACCESSORS(JSFunction, profiler_ticks, kProfilerTicksOffset)
3880
3881
3879 FixedArray* JSFunction::literals() { 3882 FixedArray* JSFunction::literals() {
3880 ASSERT(!shared()->bound()); 3883 ASSERT(!shared()->bound());
3881 return literals_or_bindings(); 3884 return literals_or_bindings();
3882 } 3885 }
3883 3886
3884 3887
3885 void JSFunction::set_literals(FixedArray* literals) { 3888 void JSFunction::set_literals(FixedArray* literals) {
3886 ASSERT(!shared()->bound()); 3889 ASSERT(!shared()->bound());
3887 set_literals_or_bindings(literals); 3890 set_literals_or_bindings(literals);
3888 } 3891 }
(...skipping 830 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

Powered by Google App Engine
This is Rietveld 408576698