Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: test/cctest/cctest.h

Issue 1404523002: [heap] inline allocation steps refactor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: generalize the step observer interface Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/heap/spaces.h ('K') | « src/heap/spaces.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« src/heap/spaces.h ('K') | « src/heap/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698