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

Side by Side Diff: src/scopes.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 24 matching lines...) Expand all
35 namespace internal { 35 namespace internal {
36 36
37 // ---------------------------------------------------------------------------- 37 // ----------------------------------------------------------------------------
38 // A Zone allocator for use with LocalsMap. 38 // A Zone allocator for use with LocalsMap.
39 39
40 class ZoneAllocator: public Allocator { 40 class ZoneAllocator: public Allocator {
41 public: 41 public:
42 /* nothing to do */ 42 /* nothing to do */
43 virtual ~ZoneAllocator() {} 43 virtual ~ZoneAllocator() {}
44 44
45 virtual void* New(size_t size) { return Zone::New(size); } 45 virtual void* New(size_t size) { return Zone::New(static_cast<int>(size)); }
46 46
47 /* ignored - Zone is freed in one fell swoop */ 47 /* ignored - Zone is freed in one fell swoop */
48 virtual void Delete(void* p) {} 48 virtual void Delete(void* p) {}
49 }; 49 };
50 50
51 51
52 static ZoneAllocator LocalsMapAllocator; 52 static ZoneAllocator LocalsMapAllocator;
53 53
54 54
55 // ---------------------------------------------------------------------------- 55 // ----------------------------------------------------------------------------
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && 955 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS &&
956 !must_have_local_context) { 956 !must_have_local_context) {
957 num_heap_slots_ = 0; 957 num_heap_slots_ = 0;
958 } 958 }
959 959
960 // Allocation done. 960 // Allocation done.
961 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); 961 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS);
962 } 962 }
963 963
964 } } // namespace v8::internal 964 } } // namespace v8::internal
OLDNEW
« src/api.cc ('K') | « src/scopeinfo.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698