| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
| 6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 struct CodeDesc { | 565 struct CodeDesc { |
| 566 byte* buffer; | 566 byte* buffer; |
| 567 int buffer_size; | 567 int buffer_size; |
| 568 int instr_size; | 568 int instr_size; |
| 569 int reloc_size; | 569 int reloc_size; |
| 570 int constant_pool_size; | 570 int constant_pool_size; |
| 571 Assembler* origin; | 571 Assembler* origin; |
| 572 }; | 572 }; |
| 573 | 573 |
| 574 | 574 |
| 575 // Callback function used for iterating objects in heap spaces, | |
| 576 // for example, scanning heap objects. | |
| 577 typedef int (*HeapObjectCallback)(HeapObject* obj); | |
| 578 | |
| 579 | |
| 580 // Callback function used for checking constraints when copying/relocating | 575 // Callback function used for checking constraints when copying/relocating |
| 581 // objects. Returns true if an object can be copied/relocated from its | 576 // objects. Returns true if an object can be copied/relocated from its |
| 582 // old_addr to a new_addr. | 577 // old_addr to a new_addr. |
| 583 typedef bool (*ConstraintCallback)(Address new_addr, Address old_addr); | 578 typedef bool (*ConstraintCallback)(Address new_addr, Address old_addr); |
| 584 | 579 |
| 585 | 580 |
| 586 // Callback function on inline caches, used for iterating over inline caches | 581 // Callback function on inline caches, used for iterating over inline caches |
| 587 // in compiled code. | 582 // in compiled code. |
| 588 typedef void (*InlineCacheCallback)(Code* code, Address ic); | 583 typedef void (*InlineCacheCallback)(Code* code, Address ic); |
| 589 | 584 |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 1030 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
| 1036 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1031 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
| 1037 DCHECK(IsValidFunctionKind(kind)); | 1032 DCHECK(IsValidFunctionKind(kind)); |
| 1038 return kind; | 1033 return kind; |
| 1039 } | 1034 } |
| 1040 } } // namespace v8::internal | 1035 } } // namespace v8::internal |
| 1041 | 1036 |
| 1042 namespace i = v8::internal; | 1037 namespace i = v8::internal; |
| 1043 | 1038 |
| 1044 #endif // V8_GLOBALS_H_ | 1039 #endif // V8_GLOBALS_H_ |
| OLD | NEW |