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

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

Issue 29353003: [Object.observe] Don't force normalization of elements for observed objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: whitespace Created 7 years, 1 month 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-debug.cc ('k') | src/x64/ic-x64.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 3631 matching lines...) Expand 10 before | Expand all | Expand 10 after
3642 void Map::set_owns_descriptors(bool is_shared) { 3642 void Map::set_owns_descriptors(bool is_shared) {
3643 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); 3643 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared));
3644 } 3644 }
3645 3645
3646 3646
3647 bool Map::owns_descriptors() { 3647 bool Map::owns_descriptors() {
3648 return OwnsDescriptors::decode(bit_field3()); 3648 return OwnsDescriptors::decode(bit_field3());
3649 } 3649 }
3650 3650
3651 3651
3652 void Map::set_is_observed(bool is_observed) { 3652 void Map::set_has_instance_call_handler() {
3653 ASSERT(instance_type() < FIRST_JS_OBJECT_TYPE || 3653 set_bit_field3(HasInstanceCallHandler::update(bit_field3(), true));
3654 instance_type() > LAST_JS_OBJECT_TYPE ||
3655 has_slow_elements_kind() || has_external_array_elements());
3656 set_bit_field3(IsObserved::update(bit_field3(), is_observed));
3657 } 3654 }
3658 3655
3659 3656
3660 bool Map::is_observed() { 3657 bool Map::has_instance_call_handler() {
3661 return IsObserved::decode(bit_field3()); 3658 return HasInstanceCallHandler::decode(bit_field3());
3662 } 3659 }
3663 3660
3664 3661
3665 void Map::deprecate() { 3662 void Map::deprecate() {
3666 set_bit_field3(Deprecated::update(bit_field3(), true)); 3663 set_bit_field3(Deprecated::update(bit_field3(), true));
3667 } 3664 }
3668 3665
3669 3666
3670 bool Map::is_deprecated() { 3667 bool Map::is_deprecated() {
3671 if (!FLAG_track_fields) return false; 3668 if (!FLAG_track_fields) return false;
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after
6410 #undef WRITE_UINT32_FIELD 6407 #undef WRITE_UINT32_FIELD
6411 #undef READ_SHORT_FIELD 6408 #undef READ_SHORT_FIELD
6412 #undef WRITE_SHORT_FIELD 6409 #undef WRITE_SHORT_FIELD
6413 #undef READ_BYTE_FIELD 6410 #undef READ_BYTE_FIELD
6414 #undef WRITE_BYTE_FIELD 6411 #undef WRITE_BYTE_FIELD
6415 6412
6416 6413
6417 } } // namespace v8::internal 6414 } } // namespace v8::internal
6418 6415
6419 #endif // V8_OBJECTS_INL_H_ 6416 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698