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

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

Issue 229973004: Remove calls to non-handlified version of GetProperty(name). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: update 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.h ('k') | src/runtime.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 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 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after
3056 3056
3057 3057
3058 void Name::set_hash_field(uint32_t value) { 3058 void Name::set_hash_field(uint32_t value) {
3059 WRITE_UINT32_FIELD(this, kHashFieldOffset, value); 3059 WRITE_UINT32_FIELD(this, kHashFieldOffset, value);
3060 #if V8_HOST_ARCH_64_BIT 3060 #if V8_HOST_ARCH_64_BIT
3061 WRITE_UINT32_FIELD(this, kHashFieldOffset + kIntSize, 0); 3061 WRITE_UINT32_FIELD(this, kHashFieldOffset + kIntSize, 0);
3062 #endif 3062 #endif
3063 } 3063 }
3064 3064
3065 3065
3066 Handle<Object> GlobalObject::GetPropertyNoExceptionThrown(
3067 Handle<GlobalObject> global,
3068 Handle<Name> name) {
3069 Handle<Object> result = Object::GetProperty(global, name);
3070 CHECK_NOT_EMPTY_HANDLE(name->GetIsolate(), result);
3071 return result;
3072 }
3073
3074
3066 bool Name::Equals(Name* other) { 3075 bool Name::Equals(Name* other) {
3067 if (other == this) return true; 3076 if (other == this) return true;
3068 if ((this->IsInternalizedString() && other->IsInternalizedString()) || 3077 if ((this->IsInternalizedString() && other->IsInternalizedString()) ||
3069 this->IsSymbol() || other->IsSymbol()) { 3078 this->IsSymbol() || other->IsSymbol()) {
3070 return false; 3079 return false;
3071 } 3080 }
3072 return String::cast(this)->SlowEquals(String::cast(other)); 3081 return String::cast(this)->SlowEquals(String::cast(other));
3073 } 3082 }
3074 3083
3075 3084
(...skipping 4015 matching lines...) Expand 10 before | Expand all | Expand 10 after
7091 #undef READ_UINT32_FIELD 7100 #undef READ_UINT32_FIELD
7092 #undef WRITE_UINT32_FIELD 7101 #undef WRITE_UINT32_FIELD
7093 #undef READ_SHORT_FIELD 7102 #undef READ_SHORT_FIELD
7094 #undef WRITE_SHORT_FIELD 7103 #undef WRITE_SHORT_FIELD
7095 #undef READ_BYTE_FIELD 7104 #undef READ_BYTE_FIELD
7096 #undef WRITE_BYTE_FIELD 7105 #undef WRITE_BYTE_FIELD
7097 7106
7098 } } // namespace v8::internal 7107 } } // namespace v8::internal
7099 7108
7100 #endif // V8_OBJECTS_INL_H_ 7109 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698