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

Side by Side Diff: src/bootstrapper.cc

Issue 390004: Fix warnings on Win64. (Closed)
Patch Set: Created 11 years, 1 month 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 DISALLOW_COPY_AND_ASSIGN(SourceCodeCache); 91 DISALLOW_COPY_AND_ASSIGN(SourceCodeCache);
92 }; 92 };
93 93
94 static SourceCodeCache natives_cache(Script::TYPE_NATIVE); 94 static SourceCodeCache natives_cache(Script::TYPE_NATIVE);
95 static SourceCodeCache extensions_cache(Script::TYPE_EXTENSION); 95 static SourceCodeCache extensions_cache(Script::TYPE_EXTENSION);
96 // This is for delete, not delete[]. 96 // This is for delete, not delete[].
97 static List<char*>* delete_these_non_arrays_on_tear_down = NULL; 97 static List<char*>* delete_these_non_arrays_on_tear_down = NULL;
98 98
99 99
100 NativesExternalStringResource::NativesExternalStringResource(const char* source) 100 NativesExternalStringResource::NativesExternalStringResource(const char* source)
101 : data_(source), length_(strlen(source)) { 101 : data_(source), length_(StrLength(source)) {
102 if (delete_these_non_arrays_on_tear_down == NULL) { 102 if (delete_these_non_arrays_on_tear_down == NULL) {
103 delete_these_non_arrays_on_tear_down = new List<char*>(2); 103 delete_these_non_arrays_on_tear_down = new List<char*>(2);
104 } 104 }
105 // The resources are small objects and we only make a fixed number of 105 // The resources are small objects and we only make a fixed number of
106 // them, but let's clean them up on exit for neatness. 106 // them, but let's clean them up on exit for neatness.
107 delete_these_non_arrays_on_tear_down-> 107 delete_these_non_arrays_on_tear_down->
108 Add(reinterpret_cast<char*>(this)); 108 Add(reinterpret_cast<char*>(this));
109 } 109 }
110 110
111 111
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 } 1638 }
1639 1639
1640 1640
1641 // Restore statics that are thread local. 1641 // Restore statics that are thread local.
1642 char* Genesis::RestoreState(char* from) { 1642 char* Genesis::RestoreState(char* from) {
1643 current_ = *reinterpret_cast<Genesis**>(from); 1643 current_ = *reinterpret_cast<Genesis**>(from);
1644 return from + sizeof(current_); 1644 return from + sizeof(current_);
1645 } 1645 }
1646 1646
1647 } } // namespace v8::internal 1647 } } // namespace v8::internal
OLDNEW
« src/api.cc ('K') | « src/assembler.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698