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

Side by Side Diff: src/api.cc

Issue 6777024: Remove unused variable to please GCC 4.6. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « no previous file | no next file » | 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 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after
4168 if (!result->ToObject(&object_func)) { 4168 if (!result->ToObject(&object_func)) {
4169 return; 4169 return;
4170 } 4170 }
4171 4171
4172 if (object_func->IsJSFunction()) { 4172 if (object_func->IsJSFunction()) {
4173 i::Handle<i::JSFunction> func = 4173 i::Handle<i::JSFunction> func =
4174 i::Handle<i::JSFunction>(i::JSFunction::cast(object_func)); 4174 i::Handle<i::JSFunction>(i::JSFunction::cast(object_func));
4175 4175
4176 // Call ResetDateCache(0 but expect no exceptions: 4176 // Call ResetDateCache(0 but expect no exceptions:
4177 bool caught_exception = false; 4177 bool caught_exception = false;
4178 i::Handle<i::Object> result = 4178 i::Execution::TryCall(func,
4179 i::Execution::TryCall(func, isolate->js_builtins_object(), 0, NULL, 4179 isolate->js_builtins_object(),
4180 &caught_exception); 4180 0,
4181 NULL,
4182 &caught_exception);
4181 } 4183 }
4182 } 4184 }
4183 4185
4184 4186
4185 static i::Handle<i::String> RegExpFlagsToString(RegExp::Flags flags) { 4187 static i::Handle<i::String> RegExpFlagsToString(RegExp::Flags flags) {
4186 char flags_buf[3]; 4188 char flags_buf[3];
4187 int num_flags = 0; 4189 int num_flags = 0;
4188 if ((flags & RegExp::kGlobal) != 0) flags_buf[num_flags++] = 'g'; 4190 if ((flags & RegExp::kGlobal) != 0) flags_buf[num_flags++] = 'g';
4189 if ((flags & RegExp::kMultiline) != 0) flags_buf[num_flags++] = 'm'; 4191 if ((flags & RegExp::kMultiline) != 0) flags_buf[num_flags++] = 'm';
4190 if ((flags & RegExp::kIgnoreCase) != 0) flags_buf[num_flags++] = 'i'; 4192 if ((flags & RegExp::kIgnoreCase) != 0) flags_buf[num_flags++] = 'i';
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
5640 5642
5641 5643
5642 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 5644 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
5643 HandleScopeImplementer* scope_implementer = 5645 HandleScopeImplementer* scope_implementer =
5644 reinterpret_cast<HandleScopeImplementer*>(storage); 5646 reinterpret_cast<HandleScopeImplementer*>(storage);
5645 scope_implementer->IterateThis(v); 5647 scope_implementer->IterateThis(v);
5646 return storage + ArchiveSpacePerThread(); 5648 return storage + ArchiveSpacePerThread();
5647 } 5649 }
5648 5650
5649 } } // namespace v8::internal 5651 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698