OLD | NEW |
---|---|
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
519 } | 519 } |
520 | 520 |
521 | 521 |
522 static inline void ExpectUndefined(const char* code) { | 522 static inline void ExpectUndefined(const char* code) { |
523 v8::Local<v8::Value> result = CompileRun(code); | 523 v8::Local<v8::Value> result = CompileRun(code); |
524 CHECK(result->IsUndefined()); | 524 CHECK(result->IsUndefined()); |
525 } | 525 } |
526 | 526 |
527 | 527 |
528 static inline void DisableInlineAllocationSteps(v8::internal::NewSpace* space) { | 528 static inline void DisableInlineAllocationSteps(v8::internal::NewSpace* space) { |
529 space->LowerInlineAllocationLimit(0); | 529 space->DisableInlineAllocationSteps(); |
Hannes Payer (out of office)
2015/10/16 15:31:17
Instead of call DisableInlineAllocationSteps, the
ofrobots
2015/10/16 21:26:35
Done.
| |
530 } | 530 } |
531 | 531 |
532 | 532 |
533 static int LenFromSize(int size) { | 533 static int LenFromSize(int size) { |
534 return (size - i::FixedArray::kHeaderSize) / i::kPointerSize; | 534 return (size - i::FixedArray::kHeaderSize) / i::kPointerSize; |
535 } | 535 } |
536 | 536 |
537 | 537 |
538 static inline void CreatePadding(i::Heap* heap, int padding_size, | 538 static inline void CreatePadding(i::Heap* heap, int padding_size, |
539 i::PretenureFlag tenure) { | 539 i::PretenureFlag tenure) { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 HandleAndZoneScope() {} | 687 HandleAndZoneScope() {} |
688 | 688 |
689 // Prefixing the below with main_ reduces a lot of naming clashes. | 689 // Prefixing the below with main_ reduces a lot of naming clashes. |
690 i::Zone* main_zone() { return &main_zone_; } | 690 i::Zone* main_zone() { return &main_zone_; } |
691 | 691 |
692 private: | 692 private: |
693 i::Zone main_zone_; | 693 i::Zone main_zone_; |
694 }; | 694 }; |
695 | 695 |
696 #endif // ifndef CCTEST_H_ | 696 #endif // ifndef CCTEST_H_ |
OLD | NEW |