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

Side by Side Diff: src/api.cc

Issue 9592030: Fix signed / unsigned warnings for ?: operators reported by Xcode 4.x clang compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-instructions.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } 518 }
519 519
520 520
521 Extension::Extension(const char* name, 521 Extension::Extension(const char* name,
522 const char* source, 522 const char* source,
523 int dep_count, 523 int dep_count,
524 const char** deps, 524 const char** deps,
525 int source_length) 525 int source_length)
526 : name_(name), 526 : name_(name),
527 source_length_(source_length >= 0 ? 527 source_length_(source_length >= 0 ?
528 source_length : (source ? strlen(source) : 0)), 528 source_length :
529 (source ? static_cast<int>(strlen(source)) : 0)),
529 source_(source, source_length_), 530 source_(source, source_length_),
530 dep_count_(dep_count), 531 dep_count_(dep_count),
531 deps_(deps), 532 deps_(deps),
532 auto_enable_(false) { } 533 auto_enable_(false) { }
533 534
534 535
535 v8::Handle<Primitive> Undefined() { 536 v8::Handle<Primitive> Undefined() {
536 i::Isolate* isolate = i::Isolate::Current(); 537 i::Isolate* isolate = i::Isolate::Current();
537 if (!EnsureInitializedForIsolate(isolate, "v8::Undefined()")) { 538 if (!EnsureInitializedForIsolate(isolate, "v8::Undefined()")) {
538 return v8::Handle<v8::Primitive>(); 539 return v8::Handle<v8::Primitive>();
(...skipping 5655 matching lines...) Expand 10 before | Expand all | Expand 10 after
6194 6195
6195 6196
6196 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6197 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6197 HandleScopeImplementer* scope_implementer = 6198 HandleScopeImplementer* scope_implementer =
6198 reinterpret_cast<HandleScopeImplementer*>(storage); 6199 reinterpret_cast<HandleScopeImplementer*>(storage);
6199 scope_implementer->IterateThis(v); 6200 scope_implementer->IterateThis(v);
6200 return storage + ArchiveSpacePerThread(); 6201 return storage + ArchiveSpacePerThread();
6201 } 6202 }
6202 6203
6203 } } // namespace v8::internal 6204 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698