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

Side by Side Diff: src/bootstrapper.cc

Issue 6930063: Remove unused but set variable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 Handle<JSFunction> fun = 1246 Handle<JSFunction> fun =
1247 factory->NewFunctionFromSharedFunctionInfo(function_info, context); 1247 factory->NewFunctionFromSharedFunctionInfo(function_info, context);
1248 1248
1249 // Call function using either the runtime object or the global 1249 // Call function using either the runtime object or the global
1250 // object as the receiver. Provide no parameters. 1250 // object as the receiver. Provide no parameters.
1251 Handle<Object> receiver = 1251 Handle<Object> receiver =
1252 Handle<Object>(use_runtime_context 1252 Handle<Object>(use_runtime_context
1253 ? top_context->builtins() 1253 ? top_context->builtins()
1254 : top_context->global()); 1254 : top_context->global());
1255 bool has_pending_exception; 1255 bool has_pending_exception;
1256 Handle<Object> result = 1256 Execution::Call(fun, receiver, 0, NULL, &has_pending_exception);
1257 Execution::Call(fun, receiver, 0, NULL, &has_pending_exception);
1258 if (has_pending_exception) return false; 1257 if (has_pending_exception) return false;
1259 return true; 1258 return true;
1260 } 1259 }
1261 1260
1262 1261
1263 #define INSTALL_NATIVE(Type, name, var) \ 1262 #define INSTALL_NATIVE(Type, name, var) \
1264 Handle<String> var##_name = factory()->LookupAsciiSymbol(name); \ 1263 Handle<String> var##_name = factory()->LookupAsciiSymbol(name); \
1265 Object* var##_native = \ 1264 Object* var##_native = \
1266 global_context()->builtins()->GetPropertyNoExceptionThrown( \ 1265 global_context()->builtins()->GetPropertyNoExceptionThrown( \
1267 *var##_name); \ 1266 *var##_name); \
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 return from + sizeof(NestingCounterType); 2158 return from + sizeof(NestingCounterType);
2160 } 2159 }
2161 2160
2162 2161
2163 // Called when the top-level V8 mutex is destroyed. 2162 // Called when the top-level V8 mutex is destroyed.
2164 void Bootstrapper::FreeThreadResources() { 2163 void Bootstrapper::FreeThreadResources() {
2165 ASSERT(!IsActive()); 2164 ASSERT(!IsActive());
2166 } 2165 }
2167 2166
2168 } } // namespace v8::internal 2167 } } // 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