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

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

Issue 159583: Change the check for builtin functions to not be based on identity,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 // TODO(1242782): Create a code kind for uncompiled code. 2334 // TODO(1242782): Create a code kind for uncompiled code.
2335 return code()->kind() != Code::STUB; 2335 return code()->kind() != Code::STUB;
2336 } 2336 }
2337 2337
2338 2338
2339 bool JSFunction::IsBoilerplate() { 2339 bool JSFunction::IsBoilerplate() {
2340 return map() == Heap::boilerplate_function_map(); 2340 return map() == Heap::boilerplate_function_map();
2341 } 2341 }
2342 2342
2343 2343
2344 bool JSFunction::IsBuiltin() {
2345 return context()->global()->IsJSBuiltinsObject();
2346 }
2347
2348
2344 bool JSObject::IsLoaded() { 2349 bool JSObject::IsLoaded() {
2345 return !map()->needs_loading(); 2350 return !map()->needs_loading();
2346 } 2351 }
2347 2352
2348 2353
2349 Code* JSFunction::code() { 2354 Code* JSFunction::code() {
2350 return shared()->code(); 2355 return shared()->code();
2351 } 2356 }
2352 2357
2353 2358
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 #undef WRITE_INT_FIELD 2847 #undef WRITE_INT_FIELD
2843 #undef READ_SHORT_FIELD 2848 #undef READ_SHORT_FIELD
2844 #undef WRITE_SHORT_FIELD 2849 #undef WRITE_SHORT_FIELD
2845 #undef READ_BYTE_FIELD 2850 #undef READ_BYTE_FIELD
2846 #undef WRITE_BYTE_FIELD 2851 #undef WRITE_BYTE_FIELD
2847 2852
2848 2853
2849 } } // namespace v8::internal 2854 } } // namespace v8::internal
2850 2855
2851 #endif // V8_OBJECTS_INL_H_ 2856 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698