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

Side by Side Diff: test/cctest/test-api.cc

Issue 2040683002: Remove dependencies of V8 on cpu-profiler is_profiling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use macro for declaring is_profiling Created 4 years, 6 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
« no previous file with comments | « test/cctest/test-api.h ('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 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 29 matching lines...) Expand all
40 #include "src/api.h" 40 #include "src/api.h"
41 #include "src/arguments.h" 41 #include "src/arguments.h"
42 #include "src/base/platform/platform.h" 42 #include "src/base/platform/platform.h"
43 #include "src/base/smart-pointers.h" 43 #include "src/base/smart-pointers.h"
44 #include "src/compilation-cache.h" 44 #include "src/compilation-cache.h"
45 #include "src/debug/debug.h" 45 #include "src/debug/debug.h"
46 #include "src/execution.h" 46 #include "src/execution.h"
47 #include "src/futex-emulation.h" 47 #include "src/futex-emulation.h"
48 #include "src/objects.h" 48 #include "src/objects.h"
49 #include "src/parsing/parser.h" 49 #include "src/parsing/parser.h"
50 #include "src/profiler/cpu-profiler.h"
50 #include "src/unicode-inl.h" 51 #include "src/unicode-inl.h"
51 #include "src/utils.h" 52 #include "src/utils.h"
52 #include "src/vm-state.h" 53 #include "src/vm-state.h"
53 #include "test/cctest/heap/heap-tester.h" 54 #include "test/cctest/heap/heap-tester.h"
54 #include "test/cctest/heap/heap-utils.h" 55 #include "test/cctest/heap/heap-utils.h"
55 56
56 static const bool kLogThreading = false; 57 static const bool kLogThreading = false;
57 58
58 using ::v8::Boolean; 59 using ::v8::Boolean;
59 using ::v8::BooleanObject; 60 using ::v8::BooleanObject;
(...skipping 25308 matching lines...) Expand 10 before | Expand all | Expand 10 after
25368 } 25369 }
25369 25370
25370 TEST(PrivateForApiIsNumber) { 25371 TEST(PrivateForApiIsNumber) {
25371 LocalContext context; 25372 LocalContext context;
25372 v8::Isolate* isolate = CcTest::isolate(); 25373 v8::Isolate* isolate = CcTest::isolate();
25373 v8::HandleScope scope(isolate); 25374 v8::HandleScope scope(isolate);
25374 25375
25375 // Shouldn't crash. 25376 // Shouldn't crash.
25376 v8::Private::ForApi(isolate, v8_str("42")); 25377 v8::Private::ForApi(isolate, v8_str("42"));
25377 } 25378 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698