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

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

Issue 16925008: Generate StoreGlobal stubs with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Finish code dependencies Created 7 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') | src/types.cc » ('J')
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 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 return READ_FIELD(this, kValueOffset); 1626 return READ_FIELD(this, kValueOffset);
1627 } 1627 }
1628 1628
1629 1629
1630 void Cell::set_value(Object* val, WriteBarrierMode ignored) { 1630 void Cell::set_value(Object* val, WriteBarrierMode ignored) {
1631 // The write barrier is not used for global property cells. 1631 // The write barrier is not used for global property cells.
1632 ASSERT(!val->IsPropertyCell() && !val->IsCell()); 1632 ASSERT(!val->IsPropertyCell() && !val->IsCell());
1633 WRITE_FIELD(this, kValueOffset, val); 1633 WRITE_FIELD(this, kValueOffset, val);
1634 } 1634 }
1635 1635
1636 ACCESSORS(PropertyCell, dependent_code, DependentCode, kDependentCodeOffset)
1636 1637
1637 Object* PropertyCell::type_raw() { 1638 Object* PropertyCell::type_raw() {
1638 return READ_FIELD(this, kTypeOffset); 1639 return READ_FIELD(this, kTypeOffset);
1639 } 1640 }
1640 1641
1641 1642
1642 void PropertyCell::set_type_raw(Object* val, WriteBarrierMode ignored) { 1643 void PropertyCell::set_type_raw(Object* val, WriteBarrierMode ignored) {
1643 WRITE_FIELD(this, kTypeOffset, val); 1644 WRITE_FIELD(this, kTypeOffset, val);
1644 } 1645 }
1645 1646
(...skipping 2121 matching lines...) Expand 10 before | Expand all | Expand 10 after
3767 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); 3768 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated);
3768 } 3769 }
3769 3770
3770 3771
3771 int Code::major_key() { 3772 int Code::major_key() {
3772 ASSERT(kind() == STUB || 3773 ASSERT(kind() == STUB ||
3773 kind() == UNARY_OP_IC || 3774 kind() == UNARY_OP_IC ||
3774 kind() == BINARY_OP_IC || 3775 kind() == BINARY_OP_IC ||
3775 kind() == COMPARE_IC || 3776 kind() == COMPARE_IC ||
3776 kind() == COMPARE_NIL_IC || 3777 kind() == COMPARE_NIL_IC ||
3778 kind() == STORE_IC ||
3777 kind() == LOAD_IC || 3779 kind() == LOAD_IC ||
3778 kind() == KEYED_LOAD_IC || 3780 kind() == KEYED_LOAD_IC ||
3779 kind() == TO_BOOLEAN_IC); 3781 kind() == TO_BOOLEAN_IC);
3780 return StubMajorKeyField::decode( 3782 return StubMajorKeyField::decode(
3781 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); 3783 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset));
3782 } 3784 }
3783 3785
3784 3786
3785 void Code::set_major_key(int major) { 3787 void Code::set_major_key(int major) {
3786 ASSERT(kind() == STUB || 3788 ASSERT(kind() == STUB ||
(...skipping 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after
6181 #undef WRITE_UINT32_FIELD 6183 #undef WRITE_UINT32_FIELD
6182 #undef READ_SHORT_FIELD 6184 #undef READ_SHORT_FIELD
6183 #undef WRITE_SHORT_FIELD 6185 #undef WRITE_SHORT_FIELD
6184 #undef READ_BYTE_FIELD 6186 #undef READ_BYTE_FIELD
6185 #undef WRITE_BYTE_FIELD 6187 #undef WRITE_BYTE_FIELD
6186 6188
6187 6189
6188 } } // namespace v8::internal 6190 } } // namespace v8::internal
6189 6191
6190 #endif // V8_OBJECTS_INL_H_ 6192 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.h » ('j') | src/types.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698