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

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

Issue 8357004: Add flag to tracing element kind transitions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: disable flags Created 9 years, 2 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/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 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 #define BOOL_ACCESSORS(holder, field, name, offset) \ 106 #define BOOL_ACCESSORS(holder, field, name, offset) \
107 bool holder::name() { \ 107 bool holder::name() { \
108 return BooleanBit::get(field(), offset); \ 108 return BooleanBit::get(field(), offset); \
109 } \ 109 } \
110 void holder::set_##name(bool value) { \ 110 void holder::set_##name(bool value) { \
111 set_##field(BooleanBit::set(field(), offset, value)); \ 111 set_##field(BooleanBit::set(field(), offset, value)); \
112 } 112 }
113 113
114 114
115 bool Object::IsFixedArrayBase() {
116 return IsFixedArray() || IsFixedDoubleArray();
117 }
118
119
115 bool Object::IsInstanceOf(FunctionTemplateInfo* expected) { 120 bool Object::IsInstanceOf(FunctionTemplateInfo* expected) {
116 // There is a constraint on the object; check. 121 // There is a constraint on the object; check.
117 if (!this->IsJSObject()) return false; 122 if (!this->IsJSObject()) return false;
118 // Fetch the constructor function of the object. 123 // Fetch the constructor function of the object.
119 Object* cons_obj = JSObject::cast(this)->map()->constructor(); 124 Object* cons_obj = JSObject::cast(this)->map()->constructor();
120 if (!cons_obj->IsJSFunction()) return false; 125 if (!cons_obj->IsJSFunction()) return false;
121 JSFunction* fun = JSFunction::cast(cons_obj); 126 JSFunction* fun = JSFunction::cast(cons_obj);
122 // Iterate through the chain of inheriting function templates to 127 // Iterate through the chain of inheriting function templates to
123 // see if the required one occurs. 128 // see if the required one occurs.
124 for (Object* type = fun->shared()->function_data(); 129 for (Object* type = fun->shared()->function_data();
(...skipping 4564 matching lines...) Expand 10 before | Expand all | Expand 10 after
4689 #undef WRITE_INT_FIELD 4694 #undef WRITE_INT_FIELD
4690 #undef READ_SHORT_FIELD 4695 #undef READ_SHORT_FIELD
4691 #undef WRITE_SHORT_FIELD 4696 #undef WRITE_SHORT_FIELD
4692 #undef READ_BYTE_FIELD 4697 #undef READ_BYTE_FIELD
4693 #undef WRITE_BYTE_FIELD 4698 #undef WRITE_BYTE_FIELD
4694 4699
4695 4700
4696 } } // namespace v8::internal 4701 } } // namespace v8::internal
4697 4702
4698 #endif // V8_OBJECTS_INL_H_ 4703 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698