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

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

Issue 231103002: Object::GetElements() and friends maybehandlification. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: FixedArray::UnionOfKeys() maybehandlified Created 6 years, 8 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/runtime.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 } 1074 }
1075 return Failure::Exception(); 1075 return Failure::Exception();
1076 } 1076 }
1077 1077
1078 1078
1079 bool Object::HasSpecificClassOf(String* name) { 1079 bool Object::HasSpecificClassOf(String* name) {
1080 return this->IsJSObject() && (JSObject::cast(this)->class_name() == name); 1080 return this->IsJSObject() && (JSObject::cast(this)->class_name() == name);
1081 } 1081 }
1082 1082
1083 1083
1084 Handle<Object> Object::GetElement(Isolate* isolate, 1084 MaybeHandle<Object> Object::GetElement(Isolate* isolate,
1085 Handle<Object> object, 1085 Handle<Object> object,
1086 uint32_t index) { 1086 uint32_t index) {
1087 // GetElement can trigger a getter which can cause allocation. 1087 // GetElement can trigger a getter which can cause allocation.
1088 // This was not always the case. This ASSERT is here to catch 1088 // This was not always the case. This ASSERT is here to catch
1089 // leftover incorrect uses. 1089 // leftover incorrect uses.
1090 ASSERT(AllowHeapAllocation::IsAllowed()); 1090 ASSERT(AllowHeapAllocation::IsAllowed());
1091 return Object::GetElementWithReceiver(isolate, object, object, index); 1091 return Object::GetElementWithReceiver(isolate, object, object, index);
1092 } 1092 }
1093 1093
1094 1094
1095 Handle<Object> Object::GetElementNoExceptionThrown(Isolate* isolate, 1095 Handle<Object> Object::GetElementNoExceptionThrown(Isolate* isolate,
1096 Handle<Object> object, 1096 Handle<Object> object,
1097 uint32_t index) { 1097 uint32_t index) {
1098 Handle<Object> result = 1098 Handle<Object> result =
1099 Object::GetElementWithReceiver(isolate, object, object, index); 1099 Object::GetElementWithReceiver(
1100 CHECK_NOT_EMPTY_HANDLE(isolate, result); 1100 isolate, object, object, index).ToHandleChecked();
1101 return result; 1101 return result;
1102 } 1102 }
1103 1103
1104 1104
1105 MaybeObject* Object::GetProperty(Name* key) { 1105 MaybeObject* Object::GetProperty(Name* key) {
1106 PropertyAttributes attributes; 1106 PropertyAttributes attributes;
1107 return GetPropertyWithReceiver(this, key, &attributes); 1107 return GetPropertyWithReceiver(this, key, &attributes);
1108 } 1108 }
1109 1109
1110 1110
(...skipping 5938 matching lines...) Expand 10 before | Expand all | Expand 10 after
7049 #undef READ_SHORT_FIELD 7049 #undef READ_SHORT_FIELD
7050 #undef WRITE_SHORT_FIELD 7050 #undef WRITE_SHORT_FIELD
7051 #undef READ_BYTE_FIELD 7051 #undef READ_BYTE_FIELD
7052 #undef WRITE_BYTE_FIELD 7052 #undef WRITE_BYTE_FIELD
7053 #undef NOBARRIER_READ_BYTE_FIELD 7053 #undef NOBARRIER_READ_BYTE_FIELD
7054 #undef NOBARRIER_WRITE_BYTE_FIELD 7054 #undef NOBARRIER_WRITE_BYTE_FIELD
7055 7055
7056 } } // namespace v8::internal 7056 } } // namespace v8::internal
7057 7057
7058 #endif // V8_OBJECTS_INL_H_ 7058 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698