OLD | NEW |
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 4971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4982 int Code::stub_info() { | 4982 int Code::stub_info() { |
4983 ASSERT(kind() == COMPARE_IC || kind() == BINARY_OP_IC || kind() == LOAD_IC); | 4983 ASSERT(kind() == COMPARE_IC || kind() == BINARY_OP_IC || kind() == LOAD_IC); |
4984 Object* value = READ_FIELD(this, kTypeFeedbackInfoOffset); | 4984 Object* value = READ_FIELD(this, kTypeFeedbackInfoOffset); |
4985 return Smi::cast(value)->value(); | 4985 return Smi::cast(value)->value(); |
4986 } | 4986 } |
4987 | 4987 |
4988 | 4988 |
4989 void Code::set_stub_info(int value) { | 4989 void Code::set_stub_info(int value) { |
4990 ASSERT(kind() == COMPARE_IC || | 4990 ASSERT(kind() == COMPARE_IC || |
4991 kind() == BINARY_OP_IC || | 4991 kind() == BINARY_OP_IC || |
| 4992 kind() == STUB || |
4992 kind() == LOAD_IC || | 4993 kind() == LOAD_IC || |
4993 kind() == KEYED_LOAD_IC || | 4994 kind() == KEYED_LOAD_IC || |
4994 kind() == STORE_IC || | 4995 kind() == STORE_IC || |
4995 kind() == KEYED_STORE_IC); | 4996 kind() == KEYED_STORE_IC); |
4996 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); | 4997 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); |
4997 } | 4998 } |
4998 | 4999 |
4999 | 5000 |
5000 void Code::set_deoptimizing_functions(Object* value) { | 5001 void Code::set_deoptimizing_functions(Object* value) { |
5001 ASSERT(kind() == OPTIMIZED_FUNCTION); | 5002 ASSERT(kind() == OPTIMIZED_FUNCTION); |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5952 #undef WRITE_UINT32_FIELD | 5953 #undef WRITE_UINT32_FIELD |
5953 #undef READ_SHORT_FIELD | 5954 #undef READ_SHORT_FIELD |
5954 #undef WRITE_SHORT_FIELD | 5955 #undef WRITE_SHORT_FIELD |
5955 #undef READ_BYTE_FIELD | 5956 #undef READ_BYTE_FIELD |
5956 #undef WRITE_BYTE_FIELD | 5957 #undef WRITE_BYTE_FIELD |
5957 | 5958 |
5958 | 5959 |
5959 } } // namespace v8::internal | 5960 } } // namespace v8::internal |
5960 | 5961 |
5961 #endif // V8_OBJECTS_INL_H_ | 5962 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |