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 155418: Attempt at work-around for http://crbug.com/16276 by explicitly checking... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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') | 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 ACCESSORS(Oddball, to_number, Object, kToNumberOffset) 1062 ACCESSORS(Oddball, to_number, Object, kToNumberOffset)
1063 1063
1064 1064
1065 Object* JSGlobalPropertyCell::value() { 1065 Object* JSGlobalPropertyCell::value() {
1066 return READ_FIELD(this, kValueOffset); 1066 return READ_FIELD(this, kValueOffset);
1067 } 1067 }
1068 1068
1069 1069
1070 void JSGlobalPropertyCell::set_value(Object* val, WriteBarrierMode ignored) { 1070 void JSGlobalPropertyCell::set_value(Object* val, WriteBarrierMode ignored) {
1071 // The write barrier is not used for global property cells. 1071 // The write barrier is not used for global property cells.
1072 ASSERT(!val->IsJSGlobalPropertyCell());
1072 WRITE_FIELD(this, kValueOffset, val); 1073 WRITE_FIELD(this, kValueOffset, val);
1073 } 1074 }
1074 1075
1075 1076
1076 int JSObject::GetHeaderSize() { 1077 int JSObject::GetHeaderSize() {
1077 switch (map()->instance_type()) { 1078 switch (map()->instance_type()) {
1078 case JS_GLOBAL_PROXY_TYPE: 1079 case JS_GLOBAL_PROXY_TYPE:
1079 return JSGlobalProxy::kSize; 1080 return JSGlobalProxy::kSize;
1080 case JS_GLOBAL_OBJECT_TYPE: 1081 case JS_GLOBAL_OBJECT_TYPE:
1081 return JSGlobalObject::kSize; 1082 return JSGlobalObject::kSize;
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 #undef WRITE_INT_FIELD 2765 #undef WRITE_INT_FIELD
2765 #undef READ_SHORT_FIELD 2766 #undef READ_SHORT_FIELD
2766 #undef WRITE_SHORT_FIELD 2767 #undef WRITE_SHORT_FIELD
2767 #undef READ_BYTE_FIELD 2768 #undef READ_BYTE_FIELD
2768 #undef WRITE_BYTE_FIELD 2769 #undef WRITE_BYTE_FIELD
2769 2770
2770 2771
2771 } } // namespace v8::internal 2772 } } // namespace v8::internal
2772 2773
2773 #endif // V8_OBJECTS_INL_H_ 2774 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698