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

Side by Side Diff: src/gdb-jit.cc

Issue 219213003: Fixed power-of-2 predicates, excluding 0. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/macro-assembler-arm64-inl.h ('k') | src/hydrogen-instructions.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 }; 245 };
246 246
247 MachOSection(const char* name, 247 MachOSection(const char* name,
248 const char* segment, 248 const char* segment,
249 uintptr_t align, 249 uintptr_t align,
250 uint32_t flags) 250 uint32_t flags)
251 : name_(name), 251 : name_(name),
252 segment_(segment), 252 segment_(segment),
253 align_(align), 253 align_(align),
254 flags_(flags) { 254 flags_(flags) {
255 ASSERT(IsPowerOf2(align));
256 if (align_ != 0) { 255 if (align_ != 0) {
256 ASSERT(IsPowerOf2(align));
257 align_ = WhichPowerOf2(align_); 257 align_ = WhichPowerOf2(align_);
258 } 258 }
259 } 259 }
260 260
261 virtual ~MachOSection() { } 261 virtual ~MachOSection() { }
262 262
263 virtual void PopulateHeader(Writer::Slot<Header> header) { 263 virtual void PopulateHeader(Writer::Slot<Header> header) {
264 header->addr = 0; 264 header->addr = 0;
265 header->size = 0; 265 header->size = 0;
266 header->offset = 0; 266 header->offset = 0;
(...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 LockGuard<Mutex> lock_guard(mutex.Pointer()); 2191 LockGuard<Mutex> lock_guard(mutex.Pointer());
2192 ASSERT(!IsLineInfoTagged(line_info)); 2192 ASSERT(!IsLineInfoTagged(line_info));
2193 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2193 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2194 ASSERT(e->value == NULL); 2194 ASSERT(e->value == NULL);
2195 e->value = TagLineInfo(line_info); 2195 e->value = TagLineInfo(line_info);
2196 } 2196 }
2197 2197
2198 2198
2199 } } // namespace v8::internal 2199 } } // namespace v8::internal
2200 #endif 2200 #endif
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64-inl.h ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698