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

Side by Side Diff: src/api.cc

Issue 5903003: Add flag for running with a non standard number of stress-runs.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 4961 matching lines...) Expand 10 before | Expand all | Expand 10 after
4972 4972
4973 v8::Testing::StressType internal::Testing::stress_type_ = 4973 v8::Testing::StressType internal::Testing::stress_type_ =
4974 v8::Testing::kStressTypeOpt; 4974 v8::Testing::kStressTypeOpt;
4975 4975
4976 4976
4977 void Testing::SetStressRunType(Testing::StressType type) { 4977 void Testing::SetStressRunType(Testing::StressType type) {
4978 internal::Testing::set_stress_type(type); 4978 internal::Testing::set_stress_type(type);
4979 } 4979 }
4980 4980
4981 int Testing::GetStressRuns() { 4981 int Testing::GetStressRuns() {
4982 if (internal::FLAG_stress_runs != 0) return internal::FLAG_stress_runs;
4982 #ifdef DEBUG 4983 #ifdef DEBUG
4983 // In debug mode the code runs much slower so stressing will only make two 4984 // In debug mode the code runs much slower so stressing will only make two
4984 // runs. 4985 // runs.
4985 return 2; 4986 return 2;
4986 #else 4987 #else
4987 return 5; 4988 return 5;
4988 #endif 4989 #endif
4989 } 4990 }
4990 4991
4991 4992
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
5106 5107
5107 5108
5108 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 5109 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
5109 HandleScopeImplementer* thread_local = 5110 HandleScopeImplementer* thread_local =
5110 reinterpret_cast<HandleScopeImplementer*>(storage); 5111 reinterpret_cast<HandleScopeImplementer*>(storage);
5111 thread_local->IterateThis(v); 5112 thread_local->IterateThis(v);
5112 return storage + ArchiveSpacePerThread(); 5113 return storage + ArchiveSpacePerThread();
5113 } 5114 }
5114 5115
5115 } } // namespace v8::internal 5116 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698