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

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

Issue 6322008: Version 3.0.10... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3061 matching lines...) Expand 10 before | Expand all | Expand 10 after
3072 ASSERT(IsApiFunction()); 3072 ASSERT(IsApiFunction());
3073 return FunctionTemplateInfo::cast(function_data()); 3073 return FunctionTemplateInfo::cast(function_data());
3074 } 3074 }
3075 3075
3076 3076
3077 bool SharedFunctionInfo::HasBuiltinFunctionId() { 3077 bool SharedFunctionInfo::HasBuiltinFunctionId() {
3078 return function_data()->IsSmi(); 3078 return function_data()->IsSmi();
3079 } 3079 }
3080 3080
3081 3081
3082 bool SharedFunctionInfo::IsBuiltinMathFunction() {
3083 return HasBuiltinFunctionId() &&
3084 builtin_function_id() >= kFirstMathFunctionId;
3085 }
3086
3087
3088 BuiltinFunctionId SharedFunctionInfo::builtin_function_id() { 3082 BuiltinFunctionId SharedFunctionInfo::builtin_function_id() {
3089 ASSERT(HasBuiltinFunctionId()); 3083 ASSERT(HasBuiltinFunctionId());
3090 return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value()); 3084 return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value());
3091 } 3085 }
3092 3086
3093 3087
3094 int SharedFunctionInfo::code_age() { 3088 int SharedFunctionInfo::code_age() {
3095 return (compiler_hints() >> kCodeAgeShift) & kCodeAgeMask; 3089 return (compiler_hints() >> kCodeAgeShift) & kCodeAgeMask;
3096 } 3090 }
3097 3091
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
3883 #undef WRITE_INT_FIELD 3877 #undef WRITE_INT_FIELD
3884 #undef READ_SHORT_FIELD 3878 #undef READ_SHORT_FIELD
3885 #undef WRITE_SHORT_FIELD 3879 #undef WRITE_SHORT_FIELD
3886 #undef READ_BYTE_FIELD 3880 #undef READ_BYTE_FIELD
3887 #undef WRITE_BYTE_FIELD 3881 #undef WRITE_BYTE_FIELD
3888 3882
3889 3883
3890 } } // namespace v8::internal 3884 } } // namespace v8::internal
3891 3885
3892 #endif // V8_OBJECTS_INL_H_ 3886 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698