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-sampler-api.cc

Issue 866843003: Contribution of PowerPC port (continuation of 422063005) - AIX Common1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address second set of comments Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Tests the sampling API in include/v8.h 5 // Tests the sampling API in include/v8.h
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include "include/v8.h" 9 #include "include/v8.h"
10 #include "src/simulator.h" 10 #include "src/simulator.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 state->pc = reinterpret_cast<void*>(simulator_->pc()); 59 state->pc = reinterpret_cast<void*>(simulator_->pc());
60 state->sp = reinterpret_cast<void*>(simulator_->sp()); 60 state->sp = reinterpret_cast<void*>(simulator_->sp());
61 state->fp = reinterpret_cast<void*>(simulator_->fp()); 61 state->fp = reinterpret_cast<void*>(simulator_->fp());
62 #elif V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 62 #elif V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64
63 state->pc = reinterpret_cast<void*>(simulator_->get_pc()); 63 state->pc = reinterpret_cast<void*>(simulator_->get_pc());
64 state->sp = reinterpret_cast<void*>( 64 state->sp = reinterpret_cast<void*>(
65 simulator_->get_register(v8::internal::Simulator::sp)); 65 simulator_->get_register(v8::internal::Simulator::sp));
66 state->fp = reinterpret_cast<void*>( 66 state->fp = reinterpret_cast<void*>(
67 simulator_->get_register(v8::internal::Simulator::fp)); 67 simulator_->get_register(v8::internal::Simulator::fp));
68 #elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64
69 state->pc = reinterpret_cast<void*>(simulator_->get_pc());
70 state->sp = reinterpret_cast<void*>(
71 simulator_->get_register(v8::internal::Simulator::sp));
72 state->fp = reinterpret_cast<void*>(
73 simulator_->get_register(v8::internal::Simulator::fp));
68 #endif 74 #endif
69 } 75 }
70 76
71 private: 77 private:
72 v8::internal::Simulator* simulator_; 78 v8::internal::Simulator* simulator_;
73 }; 79 };
74 #endif // USE_SIMULATOR 80 #endif // USE_SIMULATOR
75 81
76 82
77 class SamplingTestHelper { 83 class SamplingTestHelper {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 242
237 const SamplingTestHelper::CodeEventEntry* entry; 243 const SamplingTestHelper::CodeEventEntry* entry;
238 entry = helper.FindEventEntry(sample.begin()[0]); 244 entry = helper.FindEventEntry(sample.begin()[0]);
239 CHECK_NE(NULL, entry); 245 CHECK_NE(NULL, entry);
240 CHECK(std::string::npos != entry->name.find("test_sampler_api_inner")); 246 CHECK(std::string::npos != entry->name.find("test_sampler_api_inner"));
241 247
242 entry = helper.FindEventEntry(sample.begin()[1]); 248 entry = helper.FindEventEntry(sample.begin()[1]);
243 CHECK_NE(NULL, entry); 249 CHECK_NE(NULL, entry);
244 CHECK(std::string::npos != entry->name.find("test_sampler_api_outer")); 250 CHECK(std::string::npos != entry->name.find("test_sampler_api_outer"));
245 } 251 }
OLDNEW
« src/serialize.cc ('K') | « test/cctest/cctest.status ('k') | test/mjsunit/d8-os.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698