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

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

Issue 71783003: Reland and fix "Add support for keyed-call on arrays of fast elements" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test + fix 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/lithium.cc ('k') | src/type-info.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 3886 matching lines...) Expand 10 before | Expand all | Expand 10 after
3897 3897
3898 int Code::major_key() { 3898 int Code::major_key() {
3899 ASSERT(kind() == STUB || 3899 ASSERT(kind() == STUB ||
3900 kind() == HANDLER || 3900 kind() == HANDLER ||
3901 kind() == BINARY_OP_IC || 3901 kind() == BINARY_OP_IC ||
3902 kind() == COMPARE_IC || 3902 kind() == COMPARE_IC ||
3903 kind() == COMPARE_NIL_IC || 3903 kind() == COMPARE_NIL_IC ||
3904 kind() == STORE_IC || 3904 kind() == STORE_IC ||
3905 kind() == LOAD_IC || 3905 kind() == LOAD_IC ||
3906 kind() == KEYED_LOAD_IC || 3906 kind() == KEYED_LOAD_IC ||
3907 kind() == KEYED_CALL_IC ||
3907 kind() == TO_BOOLEAN_IC); 3908 kind() == TO_BOOLEAN_IC);
3908 return StubMajorKeyField::decode( 3909 return StubMajorKeyField::decode(
3909 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); 3910 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset));
3910 } 3911 }
3911 3912
3912 3913
3913 void Code::set_major_key(int major) { 3914 void Code::set_major_key(int major) {
3914 ASSERT(kind() == STUB || 3915 ASSERT(kind() == STUB ||
3915 kind() == HANDLER || 3916 kind() == HANDLER ||
3916 kind() == BINARY_OP_IC || 3917 kind() == BINARY_OP_IC ||
3917 kind() == COMPARE_IC || 3918 kind() == COMPARE_IC ||
3918 kind() == COMPARE_NIL_IC || 3919 kind() == COMPARE_NIL_IC ||
3919 kind() == LOAD_IC || 3920 kind() == LOAD_IC ||
3920 kind() == KEYED_LOAD_IC || 3921 kind() == KEYED_LOAD_IC ||
3921 kind() == STORE_IC || 3922 kind() == STORE_IC ||
3922 kind() == KEYED_STORE_IC || 3923 kind() == KEYED_STORE_IC ||
3924 kind() == KEYED_CALL_IC ||
3923 kind() == TO_BOOLEAN_IC); 3925 kind() == TO_BOOLEAN_IC);
3924 ASSERT(0 <= major && major < 256); 3926 ASSERT(0 <= major && major < 256);
3925 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset); 3927 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset);
3926 int updated = StubMajorKeyField::update(previous, major); 3928 int updated = StubMajorKeyField::update(previous, major);
3927 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); 3929 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated);
3928 } 3930 }
3929 3931
3930 3932
3931 bool Code::is_pregenerated() { 3933 bool Code::is_pregenerated() {
3932 return (kind() == STUB && IsPregeneratedField::decode(flags())); 3934 return (kind() == STUB && IsPregeneratedField::decode(flags()));
(...skipping 2498 matching lines...) Expand 10 before | Expand all | Expand 10 after
6431 #undef WRITE_UINT32_FIELD 6433 #undef WRITE_UINT32_FIELD
6432 #undef READ_SHORT_FIELD 6434 #undef READ_SHORT_FIELD
6433 #undef WRITE_SHORT_FIELD 6435 #undef WRITE_SHORT_FIELD
6434 #undef READ_BYTE_FIELD 6436 #undef READ_BYTE_FIELD
6435 #undef WRITE_BYTE_FIELD 6437 #undef WRITE_BYTE_FIELD
6436 6438
6437 6439
6438 } } // namespace v8::internal 6440 } } // namespace v8::internal
6439 6441
6440 #endif // V8_OBJECTS_INL_H_ 6442 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698