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

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

Issue 118302: Experimental revert of revisions 2093, 2094, 2099, and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/stub-cache.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 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 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after
2547 PropertyAttributes JSObject::GetPropertyAttribute(String* key) { 2547 PropertyAttributes JSObject::GetPropertyAttribute(String* key) {
2548 return GetPropertyAttributeWithReceiver(this, key); 2548 return GetPropertyAttributeWithReceiver(this, key);
2549 } 2549 }
2550 2550
2551 2551
2552 bool JSObject::HasElement(uint32_t index) { 2552 bool JSObject::HasElement(uint32_t index) {
2553 return HasElementWithReceiver(this, index); 2553 return HasElementWithReceiver(this, index);
2554 } 2554 }
2555 2555
2556 2556
2557 Smi* JSObject::InterceptorPropertyLookupHint(String* name) {
2558 // TODO(antonm): Do we want to do any shortcuts for global object?
2559 if (HasFastProperties()) {
2560 LookupResult lookup;
2561 LocalLookupRealNamedProperty(name, &lookup);
2562 if (lookup.IsValid()) {
2563 if (lookup.type() == FIELD && lookup.IsCacheable()) {
2564 return Smi::FromInt(lookup.GetFieldIndex());
2565 }
2566 } else {
2567 return Smi::FromInt(kLookupInPrototype);
2568 }
2569 }
2570
2571 return Smi::FromInt(kLookupInHolder);
2572 }
2573
2574
2575 bool AccessorInfo::all_can_read() { 2557 bool AccessorInfo::all_can_read() {
2576 return BooleanBit::get(flag(), kAllCanReadBit); 2558 return BooleanBit::get(flag(), kAllCanReadBit);
2577 } 2559 }
2578 2560
2579 2561
2580 void AccessorInfo::set_all_can_read(bool value) { 2562 void AccessorInfo::set_all_can_read(bool value) {
2581 set_flag(BooleanBit::set(flag(), kAllCanReadBit, value)); 2563 set_flag(BooleanBit::set(flag(), kAllCanReadBit, value));
2582 } 2564 }
2583 2565
2584 2566
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 #undef WRITE_INT_FIELD 2646 #undef WRITE_INT_FIELD
2665 #undef READ_SHORT_FIELD 2647 #undef READ_SHORT_FIELD
2666 #undef WRITE_SHORT_FIELD 2648 #undef WRITE_SHORT_FIELD
2667 #undef READ_BYTE_FIELD 2649 #undef READ_BYTE_FIELD
2668 #undef WRITE_BYTE_FIELD 2650 #undef WRITE_BYTE_FIELD
2669 2651
2670 2652
2671 } } // namespace v8::internal 2653 } } // namespace v8::internal
2672 2654
2673 #endif // V8_OBJECTS_INL_H_ 2655 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698