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

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

Issue 960493003: Remove JITCodeEvent::CODE_REMOVED (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 9 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 | « src/third_party/vtune/vtune-jit.cc ('k') | test/cctest/test-sampler-api.cc » ('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 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 12239 matching lines...) Expand 10 before | Expand all | Expand 10 after
12250 12250
12251 entry = code_map->Lookup(event->new_code_start, 12251 entry = code_map->Lookup(event->new_code_start,
12252 i::ComputePointerHash(event->new_code_start), 12252 i::ComputePointerHash(event->new_code_start),
12253 true); 12253 true);
12254 CHECK(entry != NULL); 12254 CHECK(entry != NULL);
12255 entry->value = reinterpret_cast<void*>(event->code_len); 12255 entry->value = reinterpret_cast<void*>(event->code_len);
12256 } 12256 }
12257 } 12257 }
12258 break; 12258 break;
12259 12259
12260 case v8::JitCodeEvent::CODE_REMOVED:
12261 // Object/code removal events are currently not dispatched from the GC.
12262 CHECK(false);
12263 break;
12264
12265 // For CODE_START_LINE_INFO_RECORDING event, we will create one 12260 // For CODE_START_LINE_INFO_RECORDING event, we will create one
12266 // DummyJitCodeLineInfo data structure pointed by event->user_dat. We 12261 // DummyJitCodeLineInfo data structure pointed by event->user_dat. We
12267 // record it in jitcode_line_info. 12262 // record it in jitcode_line_info.
12268 case v8::JitCodeEvent::CODE_START_LINE_INFO_RECORDING: { 12263 case v8::JitCodeEvent::CODE_START_LINE_INFO_RECORDING: {
12269 DummyJitCodeLineInfo* line_info = new DummyJitCodeLineInfo(); 12264 DummyJitCodeLineInfo* line_info = new DummyJitCodeLineInfo();
12270 v8::JitCodeEvent* temp_event = const_cast<v8::JitCodeEvent*>(event); 12265 v8::JitCodeEvent* temp_event = const_cast<v8::JitCodeEvent*>(event);
12271 temp_event->user_data = line_info; 12266 temp_event->user_data = line_info;
12272 i::HashMap::Entry* entry = 12267 i::HashMap::Entry* entry =
12273 jitcode_line_info->Lookup(line_info, 12268 jitcode_line_info->Lookup(line_info,
12274 i::ComputePointerHash(line_info), 12269 i::ComputePointerHash(line_info),
(...skipping 9664 matching lines...) Expand 10 before | Expand all | Expand 10 after
21939 } 21934 }
21940 { 21935 {
21941 v8::TryCatch try_catch; 21936 v8::TryCatch try_catch;
21942 uint16_t* data = reinterpret_cast<uint16_t*>(buffer); 21937 uint16_t* data = reinterpret_cast<uint16_t*>(buffer);
21943 CHECK(v8::String::NewFromTwoByte(isolate, data, v8::String::kNormalString, 21938 CHECK(v8::String::NewFromTwoByte(isolate, data, v8::String::kNormalString,
21944 length).IsEmpty()); 21939 length).IsEmpty());
21945 CHECK(try_catch.HasCaught()); 21940 CHECK(try_catch.HasCaught());
21946 } 21941 }
21947 free(buffer); 21942 free(buffer);
21948 } 21943 }
OLDNEW
« no previous file with comments | « src/third_party/vtune/vtune-jit.cc ('k') | test/cctest/test-sampler-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698