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

Side by Side Diff: src/snapshot/code-serializer.cc

Issue 1772403002: [Interpreter] Log code-creation events for bytecode handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review. Created 4 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/objects.h ('k') | src/snapshot/deserializer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/snapshot/code-serializer.h" 5 #include "src/snapshot/code-serializer.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/log.h" 8 #include "src/log.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/profiler/cpu-profiler.h" 10 #include "src/profiler/cpu-profiler.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 switch (code_object->kind()) { 64 switch (code_object->kind()) {
65 case Code::OPTIMIZED_FUNCTION: // No optimized code compiled yet. 65 case Code::OPTIMIZED_FUNCTION: // No optimized code compiled yet.
66 case Code::HANDLER: // No handlers patched in yet. 66 case Code::HANDLER: // No handlers patched in yet.
67 case Code::REGEXP: // No regexp literals initialized yet. 67 case Code::REGEXP: // No regexp literals initialized yet.
68 case Code::NUMBER_OF_KINDS: // Pseudo enum value. 68 case Code::NUMBER_OF_KINDS: // Pseudo enum value.
69 CHECK(false); 69 CHECK(false);
70 case Code::BUILTIN: 70 case Code::BUILTIN:
71 SerializeBuiltin(code_object->builtin_index(), how_to_code, 71 SerializeBuiltin(code_object->builtin_index(), how_to_code,
72 where_to_point); 72 where_to_point);
73 return; 73 return;
74 case Code::BYTECODE_HANDLER:
Yang 2016/03/09 13:02:18 Please move this to the CHECK(false) cases above.
Stefano Sanfilippo 2016/03/09 14:41:44 Done.
74 case Code::STUB: 75 case Code::STUB:
75 SerializeCodeStub(code_object->stub_key(), how_to_code, where_to_point); 76 SerializeCodeStub(code_object->stub_key(), how_to_code, where_to_point);
76 return; 77 return;
77 #define IC_KIND_CASE(KIND) case Code::KIND: 78 #define IC_KIND_CASE(KIND) case Code::KIND:
78 IC_KIND_LIST(IC_KIND_CASE) 79 IC_KIND_LIST(IC_KIND_CASE)
79 #undef IC_KIND_CASE 80 #undef IC_KIND_CASE
80 SerializeIC(code_object, how_to_code, where_to_point); 81 SerializeIC(code_object, how_to_code, where_to_point);
81 return; 82 return;
82 case Code::FUNCTION: 83 case Code::FUNCTION:
83 DCHECK(code_object->has_reloc_info_for_serialization()); 84 DCHECK(code_object->has_reloc_info_for_serialization());
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 SanityCheckResult r = scd->SanityCheck(isolate, source); 412 SanityCheckResult r = scd->SanityCheck(isolate, source);
412 if (r == CHECK_SUCCESS) return scd; 413 if (r == CHECK_SUCCESS) return scd;
413 cached_data->Reject(); 414 cached_data->Reject();
414 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); 415 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r);
415 delete scd; 416 delete scd;
416 return NULL; 417 return NULL;
417 } 418 }
418 419
419 } // namespace internal 420 } // namespace internal
420 } // namespace v8 421 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/snapshot/deserializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698