| 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 4053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4064 Kind kind = this->kind(); | 4064 Kind kind = this->kind(); |
| 4065 switch (kind) { | 4065 switch (kind) { |
| 4066 #define CASE(name) case name: return true; | 4066 #define CASE(name) case name: return true; |
| 4067 IC_KIND_LIST(CASE) | 4067 IC_KIND_LIST(CASE) |
| 4068 #undef CASE | 4068 #undef CASE |
| 4069 default: return false; | 4069 default: return false; |
| 4070 } | 4070 } |
| 4071 } | 4071 } |
| 4072 | 4072 |
| 4073 | 4073 |
| 4074 bool Code::is_debug_break() { | 4074 bool Code::is_debug_stub() { |
| 4075 return ic_state() == DEBUG_STUB && extra_ic_state() == DEBUG_BREAK; | 4075 return ic_state() == DEBUG_STUB; |
| 4076 } | 4076 } |
| 4077 | 4077 |
| 4078 | 4078 |
| 4079 Code::Flags Code::ComputeFlags(Kind kind, | 4079 Code::Flags Code::ComputeFlags(Kind kind, |
| 4080 InlineCacheState ic_state, | 4080 InlineCacheState ic_state, |
| 4081 ExtraICState extra_ic_state, | 4081 ExtraICState extra_ic_state, |
| 4082 StubType type, | 4082 StubType type, |
| 4083 int argc, | 4083 int argc, |
| 4084 InlineCacheHolderFlag holder) { | 4084 InlineCacheHolderFlag holder) { |
| 4085 ASSERT(argc <= Code::kMaxArguments); | 4085 ASSERT(argc <= Code::kMaxArguments); |
| (...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6244 #undef WRITE_UINT32_FIELD | 6244 #undef WRITE_UINT32_FIELD |
| 6245 #undef READ_SHORT_FIELD | 6245 #undef READ_SHORT_FIELD |
| 6246 #undef WRITE_SHORT_FIELD | 6246 #undef WRITE_SHORT_FIELD |
| 6247 #undef READ_BYTE_FIELD | 6247 #undef READ_BYTE_FIELD |
| 6248 #undef WRITE_BYTE_FIELD | 6248 #undef WRITE_BYTE_FIELD |
| 6249 | 6249 |
| 6250 | 6250 |
| 6251 } } // namespace v8::internal | 6251 } } // namespace v8::internal |
| 6252 | 6252 |
| 6253 #endif // V8_OBJECTS_INL_H_ | 6253 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |