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

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

Issue 8052029: Pregenerate a RecordWrite stub that we need in the new CallFunctionStub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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/stub-cache.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2917 matching lines...) Expand 10 before | Expand all | Expand 10 after
2928 ASSERT(kind() == STUB || 2928 ASSERT(kind() == STUB ||
2929 kind() == UNARY_OP_IC || 2929 kind() == UNARY_OP_IC ||
2930 kind() == BINARY_OP_IC || 2930 kind() == BINARY_OP_IC ||
2931 kind() == COMPARE_IC || 2931 kind() == COMPARE_IC ||
2932 kind() == TO_BOOLEAN_IC); 2932 kind() == TO_BOOLEAN_IC);
2933 ASSERT(0 <= major && major < 256); 2933 ASSERT(0 <= major && major < 256);
2934 WRITE_BYTE_FIELD(this, kStubMajorKeyOffset, major); 2934 WRITE_BYTE_FIELD(this, kStubMajorKeyOffset, major);
2935 } 2935 }
2936 2936
2937 2937
2938 bool Code::is_pregenerated() {
2939 return kind() == STUB && IsPregeneratedField::decode(flags());
2940 }
2941
2942
2943 void Code::set_is_pregenerated(bool value) {
2944 ASSERT(kind() == STUB);
2945 Flags f = flags();
2946 f = static_cast<Flags>(IsPregeneratedField::update(f, value));
2947 set_flags(f);
2948 }
2949
2950
2938 bool Code::optimizable() { 2951 bool Code::optimizable() {
2939 ASSERT(kind() == FUNCTION); 2952 ASSERT(kind() == FUNCTION);
2940 return READ_BYTE_FIELD(this, kOptimizableOffset) == 1; 2953 return READ_BYTE_FIELD(this, kOptimizableOffset) == 1;
2941 } 2954 }
2942 2955
2943 2956
2944 void Code::set_optimizable(bool value) { 2957 void Code::set_optimizable(bool value) {
2945 ASSERT(kind() == FUNCTION); 2958 ASSERT(kind() == FUNCTION);
2946 WRITE_BYTE_FIELD(this, kOptimizableOffset, value ? 1 : 0); 2959 WRITE_BYTE_FIELD(this, kOptimizableOffset, value ? 1 : 0);
2947 } 2960 }
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
4658 #undef WRITE_INT_FIELD 4671 #undef WRITE_INT_FIELD
4659 #undef READ_SHORT_FIELD 4672 #undef READ_SHORT_FIELD
4660 #undef WRITE_SHORT_FIELD 4673 #undef WRITE_SHORT_FIELD
4661 #undef READ_BYTE_FIELD 4674 #undef READ_BYTE_FIELD
4662 #undef WRITE_BYTE_FIELD 4675 #undef WRITE_BYTE_FIELD
4663 4676
4664 4677
4665 } } // namespace v8::internal 4678 } } // namespace v8::internal
4666 4679
4667 #endif // V8_OBJECTS_INL_H_ 4680 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698