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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
418 } \ | 418 } \ |
419 void operator delete(void* object) { \ | 419 void operator delete(void* object) { \ |
420 Logger::DeleteEventStatic(name, object); \ | 420 Logger::DeleteEventStatic(name, object); \ |
421 ::operator delete(object); \ | 421 ::operator delete(object); \ |
422 } | 422 } |
423 #else | 423 #else |
424 #define TRACK_MEMORY(name) | 424 #define TRACK_MEMORY(name) |
425 #endif | 425 #endif |
426 | 426 |
427 | 427 |
428 enum CpuImplementer { | |
429 UnknownImplementer, | |
ulan
2012/10/18 09:07:53
Nit: names of constants are usually all upper case
danno
2012/10/18 12:22:10
Done.
| |
430 ARMImplementer, | |
431 QualcommImplementer | |
432 }; | |
433 | |
434 | |
428 // Feature flags bit positions. They are mostly based on the CPUID spec. | 435 // Feature flags bit positions. They are mostly based on the CPUID spec. |
429 // (We assign CPUID itself to one of the currently reserved bits -- | 436 // (We assign CPUID itself to one of the currently reserved bits -- |
430 // feel free to change this if needed.) | 437 // feel free to change this if needed.) |
431 // On X86/X64, values below 32 are bits in EDX, values above 32 are bits in ECX. | 438 // On X86/X64, values below 32 are bits in EDX, values above 32 are bits in ECX. |
432 enum CpuFeature { SSE4_1 = 32 + 19, // x86 | 439 enum CpuFeature { SSE4_1 = 32 + 19, // x86 |
433 SSE3 = 32 + 0, // x86 | 440 SSE3 = 32 + 0, // x86 |
434 SSE2 = 26, // x86 | 441 SSE2 = 26, // x86 |
435 CMOV = 15, // x86 | 442 CMOV = 15, // x86 |
436 RDTSC = 4, // x86 | 443 RDTSC = 4, // x86 |
437 CPUID = 10, // x86 | 444 CPUID = 10, // x86 |
438 VFP3 = 1, // ARM | 445 VFP3 = 1, // ARM |
439 ARMv7 = 2, // ARM | 446 ARMv7 = 2, // ARM |
440 VFP2 = 3, // ARM | 447 VFP2 = 3, // ARM |
441 SUDIV = 4, // ARM | 448 SUDIV = 4, // ARM |
442 UNALIGNED_ACCESSES = 5, // ARM | 449 UNALIGNED_ACCESSES = 5, // ARM |
450 MOVW_MOVT_IMMEDIATE_LOADS = 6, // ARM | |
443 SAHF = 0, // x86 | 451 SAHF = 0, // x86 |
444 FPU = 1}; // MIPS | 452 FPU = 1}; // MIPS |
445 | 453 |
446 | 454 |
447 // Used to specify if a macro instruction must perform a smi check on tagged | 455 // Used to specify if a macro instruction must perform a smi check on tagged |
448 // values. | 456 // values. |
449 enum SmiCheckType { | 457 enum SmiCheckType { |
450 DONT_DO_SMI_CHECK, | 458 DONT_DO_SMI_CHECK, |
451 DO_SMI_CHECK | 459 DO_SMI_CHECK |
452 }; | 460 }; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
572 | 580 |
573 enum ClearExceptionFlag { | 581 enum ClearExceptionFlag { |
574 KEEP_EXCEPTION, | 582 KEEP_EXCEPTION, |
575 CLEAR_EXCEPTION | 583 CLEAR_EXCEPTION |
576 }; | 584 }; |
577 | 585 |
578 | 586 |
579 } } // namespace v8::internal | 587 } } // namespace v8::internal |
580 | 588 |
581 #endif // V8_V8GLOBALS_H_ | 589 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |