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

Side by Side Diff: tools/parser-shell.cc

Issue 2268513002: Cleanup: Move ParseInfo to a separate file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 // 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 18 matching lines...) Expand all
29 #include <string.h> 29 #include <string.h>
30 #include <stdio.h> 30 #include <stdio.h>
31 #include <stdlib.h> 31 #include <stdlib.h>
32 #include <string> 32 #include <string>
33 #include <vector> 33 #include <vector>
34 #include "src/v8.h" 34 #include "src/v8.h"
35 35
36 #include "include/libplatform/libplatform.h" 36 #include "include/libplatform/libplatform.h"
37 #include "src/api.h" 37 #include "src/api.h"
38 #include "src/compiler.h" 38 #include "src/compiler.h"
39 #include "src/parsing/scanner-character-streams.h" 39 #include "src/parsing/parse-info.h"
40 #include "src/parsing/parser.h" 40 #include "src/parsing/parser.h"
41 #include "src/parsing/preparse-data-format.h" 41 #include "src/parsing/preparse-data-format.h"
42 #include "src/parsing/preparse-data.h" 42 #include "src/parsing/preparse-data.h"
43 #include "src/parsing/preparser.h" 43 #include "src/parsing/preparser.h"
44 #include "src/parsing/scanner-character-streams.h"
44 #include "tools/shell-utils.h" 45 #include "tools/shell-utils.h"
45 46
46 using namespace v8::internal; 47 using namespace v8::internal;
47 48
48 class StringResource8 : public v8::String::ExternalOneByteStringResource { 49 class StringResource8 : public v8::String::ExternalOneByteStringResource {
49 public: 50 public:
50 StringResource8(const char* data, int length) 51 StringResource8(const char* data, int length)
51 : data_(data), length_(length) { } 52 : data_(data), length_(length) { }
52 virtual size_t length() const { return length_; } 53 virtual size_t length() const { return length_; }
53 virtual const char* data() const { return data_; } 54 virtual const char* data() const { return data_; }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 printf("%s(SecondParseRunTime): %.f ms\n", benchmark.c_str(), 186 printf("%s(SecondParseRunTime): %.f ms\n", benchmark.c_str(),
186 second_parse_total); 187 second_parse_total);
187 } 188 }
188 } 189 }
189 v8::V8::Dispose(); 190 v8::V8::Dispose();
190 v8::V8::ShutdownPlatform(); 191 v8::V8::ShutdownPlatform();
191 delete platform; 192 delete platform;
192 delete create_params.array_buffer_allocator; 193 delete create_params.array_buffer_allocator;
193 return 0; 194 return 0;
194 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698