| 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 4023 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4034 void Code::set_marked_for_deoptimization(bool flag) { | 4034 void Code::set_marked_for_deoptimization(bool flag) { | 
| 4035   ASSERT(kind() == OPTIMIZED_FUNCTION); | 4035   ASSERT(kind() == OPTIMIZED_FUNCTION); | 
| 4036   int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); | 4036   int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); | 
| 4037   int updated = MarkedForDeoptimizationField::update(previous, flag); | 4037   int updated = MarkedForDeoptimizationField::update(previous, flag); | 
| 4038   WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); | 4038   WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); | 
| 4039 } | 4039 } | 
| 4040 | 4040 | 
| 4041 | 4041 | 
| 4042 bool Code::is_inline_cache_stub() { | 4042 bool Code::is_inline_cache_stub() { | 
| 4043   Kind kind = this->kind(); | 4043   Kind kind = this->kind(); | 
| 4044   return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND; | 4044   switch (kind) { | 
|  | 4045 #define CASE(name) case name: return true; | 
|  | 4046     IC_KIND_LIST(CASE) | 
|  | 4047 #undef CASE | 
|  | 4048     default: return false; | 
|  | 4049   } | 
| 4045 } | 4050 } | 
| 4046 | 4051 | 
| 4047 | 4052 | 
| 4048 bool Code::is_debug_break() { | 4053 bool Code::is_debug_break() { | 
| 4049   return ic_state() == DEBUG_STUB && extra_ic_state() == DEBUG_BREAK; | 4054   return ic_state() == DEBUG_STUB && extra_ic_state() == DEBUG_BREAK; | 
| 4050 } | 4055 } | 
| 4051 | 4056 | 
| 4052 | 4057 | 
| 4053 Code::Flags Code::ComputeFlags(Kind kind, | 4058 Code::Flags Code::ComputeFlags(Kind kind, | 
| 4054                                InlineCacheState ic_state, | 4059                                InlineCacheState ic_state, | 
| (...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6185 #undef WRITE_UINT32_FIELD | 6190 #undef WRITE_UINT32_FIELD | 
| 6186 #undef READ_SHORT_FIELD | 6191 #undef READ_SHORT_FIELD | 
| 6187 #undef WRITE_SHORT_FIELD | 6192 #undef WRITE_SHORT_FIELD | 
| 6188 #undef READ_BYTE_FIELD | 6193 #undef READ_BYTE_FIELD | 
| 6189 #undef WRITE_BYTE_FIELD | 6194 #undef WRITE_BYTE_FIELD | 
| 6190 | 6195 | 
| 6191 | 6196 | 
| 6192 } }  // namespace v8::internal | 6197 } }  // namespace v8::internal | 
| 6193 | 6198 | 
| 6194 #endif  // V8_OBJECTS_INL_H_ | 6199 #endif  // V8_OBJECTS_INL_H_ | 
| OLD | NEW | 
|---|