| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 23 matching lines...) Expand all Loading... |
| 34 #include "objects-inl.h" | 34 #include "objects-inl.h" |
| 35 #include "macro-assembler.h" | 35 #include "macro-assembler.h" |
| 36 #include "scanner.h" | 36 #include "scanner.h" |
| 37 #include "scopeinfo.h" | 37 #include "scopeinfo.h" |
| 38 #include "string-stream.h" | 38 #include "string-stream.h" |
| 39 | 39 |
| 40 #ifdef ENABLE_DISASSEMBLER | 40 #ifdef ENABLE_DISASSEMBLER |
| 41 #include "disassembler.h" | 41 #include "disassembler.h" |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 namespace v8 { namespace internal { | 44 namespace v8 { |
| 45 namespace internal { |
| 45 | 46 |
| 46 // Getters and setters are stored in a fixed array property. These are | 47 // Getters and setters are stored in a fixed array property. These are |
| 47 // constants for their indices. | 48 // constants for their indices. |
| 48 const int kGetterIndex = 0; | 49 const int kGetterIndex = 0; |
| 49 const int kSetterIndex = 1; | 50 const int kSetterIndex = 1; |
| 50 | 51 |
| 51 bool Object::IsInstanceOf(FunctionTemplateInfo* expected) { | 52 bool Object::IsInstanceOf(FunctionTemplateInfo* expected) { |
| 52 // There is a constraint on the object; check | 53 // There is a constraint on the object; check |
| 53 if (!this->IsJSObject()) return false; | 54 if (!this->IsJSObject()) return false; |
| 54 // Fetch the constructor function of the object | 55 // Fetch the constructor function of the object |
| (...skipping 7406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7461 // No break point. | 7462 // No break point. |
| 7462 if (break_point_objects()->IsUndefined()) return 0; | 7463 if (break_point_objects()->IsUndefined()) return 0; |
| 7463 // Single beak point. | 7464 // Single beak point. |
| 7464 if (!break_point_objects()->IsFixedArray()) return 1; | 7465 if (!break_point_objects()->IsFixedArray()) return 1; |
| 7465 // Multiple break points. | 7466 // Multiple break points. |
| 7466 return FixedArray::cast(break_point_objects())->length(); | 7467 return FixedArray::cast(break_point_objects())->length(); |
| 7467 } | 7468 } |
| 7468 #endif | 7469 #endif |
| 7469 | 7470 |
| 7470 } } // namespace v8::internal | 7471 } } // namespace v8::internal |
| OLD | NEW |