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

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

Issue 96753003: Remove the obsolete Code::IsPregenerated flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add comment about unused bit. Created 7 years 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/x64/code-stubs-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 3941 matching lines...) Expand 10 before | Expand all | Expand 10 after
3952 kind() == COMPARE_NIL_IC || 3952 kind() == COMPARE_NIL_IC ||
3953 kind() == LOAD_IC || 3953 kind() == LOAD_IC ||
3954 kind() == KEYED_LOAD_IC || 3954 kind() == KEYED_LOAD_IC ||
3955 kind() == STORE_IC || 3955 kind() == STORE_IC ||
3956 kind() == KEYED_STORE_IC || 3956 kind() == KEYED_STORE_IC ||
3957 kind() == KEYED_CALL_IC || 3957 kind() == KEYED_CALL_IC ||
3958 kind() == TO_BOOLEAN_IC; 3958 kind() == TO_BOOLEAN_IC;
3959 } 3959 }
3960 3960
3961 3961
3962 bool Code::is_pregenerated() {
3963 return (kind() == STUB && IsPregeneratedField::decode(flags()));
3964 }
3965
3966
3967 void Code::set_is_pregenerated(bool value) {
3968 ASSERT(kind() == STUB);
3969 Flags f = flags();
3970 f = static_cast<Flags>(IsPregeneratedField::update(f, value));
3971 set_flags(f);
3972 }
3973
3974
3975 bool Code::optimizable() { 3962 bool Code::optimizable() {
3976 ASSERT_EQ(FUNCTION, kind()); 3963 ASSERT_EQ(FUNCTION, kind());
3977 return READ_BYTE_FIELD(this, kOptimizableOffset) == 1; 3964 return READ_BYTE_FIELD(this, kOptimizableOffset) == 1;
3978 } 3965 }
3979 3966
3980 3967
3981 void Code::set_optimizable(bool value) { 3968 void Code::set_optimizable(bool value) {
3982 ASSERT_EQ(FUNCTION, kind()); 3969 ASSERT_EQ(FUNCTION, kind());
3983 WRITE_BYTE_FIELD(this, kOptimizableOffset, value ? 1 : 0); 3970 WRITE_BYTE_FIELD(this, kOptimizableOffset, value ? 1 : 0);
3984 } 3971 }
(...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after
6476 #undef WRITE_UINT32_FIELD 6463 #undef WRITE_UINT32_FIELD
6477 #undef READ_SHORT_FIELD 6464 #undef READ_SHORT_FIELD
6478 #undef WRITE_SHORT_FIELD 6465 #undef WRITE_SHORT_FIELD
6479 #undef READ_BYTE_FIELD 6466 #undef READ_BYTE_FIELD
6480 #undef WRITE_BYTE_FIELD 6467 #undef WRITE_BYTE_FIELD
6481 6468
6482 6469
6483 } } // namespace v8::internal 6470 } } // namespace v8::internal
6484 6471
6485 #endif // V8_OBJECTS_INL_H_ 6472 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698